MultipleIOException (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.io, class: MultipleIOException

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`

@Public @Stable public class MultipleIOException extends IOException
Encapsulate a list of `IOException` into an `IOException`

See Also:
  - Serialized Form

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `org.apache.hadoop.io.MultipleIOException.Builder`
  Build an `IOException` using `MultipleIOException` if there are more than one.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IOException`
  `createIOException(List<IOException> exceptions)`
  A convenient method to create an `IOException`.
  `List<IOException>`
  `getExceptions()`

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### getExceptions

    public List<IOException> getExceptions()
    Returns:
      the underlying exceptions

  - ### createIOException

    public static IOException createIOException(List<IOException> exceptions)
    A convenient method to create an `IOException`.
    Parameters:
      `exceptions` - IOException List.
    Returns:
      IOException.