Package org.apache.hadoop.io
Class MultipleIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.io.MultipleIOException
- All Implemented Interfaces:
Serializable
Encapsulate a list of
IOException into an IOException- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classorg.apache.hadoop.io.MultipleIOException.BuilderBuild anIOExceptionusingMultipleIOExceptionif there are more than one. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOExceptioncreateIOException(List<IOException> exceptions) A convenient method to create anIOException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getExceptions
- Returns:
- the underlying exceptions
-
createIOException
A convenient method to create anIOException.- Parameters:
exceptions- IOException List.- Returns:
- IOException.
-