Class MultipleIOException.Builder

java.lang.Object
org.apache.hadoop.io.MultipleIOException.Builder
Enclosing class:
MultipleIOException

public static class MultipleIOException.Builder extends Object
Build an IOException using MultipleIOException if there are more than one.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • add

      public void add(Throwable t)
      Add the given Throwable to the exception list.
      Parameters:
      t - Throwable.
    • build

      public IOException build()
      Returns:
      null if nothing is added to this builder; otherwise, return an IOException
    • isEmpty

      public boolean isEmpty()
      Returns:
      whether any exception was added.