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

Package org.apache.hadoop.io

# 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 Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(Throwable t)`
  Add the given `Throwable` to the exception list.
  `IOException`
  `build()`
  `boolean`
  `isEmpty()`

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

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

- ## 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.