Package org.apache.hadoop.io
Class MultipleIOException.Builder
java.lang.Object
org.apache.hadoop.io.MultipleIOException.Builder
- Enclosing class:
- MultipleIOException
Build an
IOException using MultipleIOException
if there are more than one.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
Add the givenThrowableto the exception list.- Parameters:
t- Throwable.
-
build
- Returns:
- null if nothing is added to this builder;
otherwise, return an
IOException
-
isEmpty
public boolean isEmpty()- Returns:
- whether any exception was added.
-