org.apache.commons.io

## Class UncheckedIOExceptions

- java.lang.Object
- - org.apache.commons.io.UncheckedIOExceptions

-     final class UncheckedIOExceptions
      extends Object

  Helps use lambdas that throw `IOException` rethrow as `UncheckedIOException`.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static UncheckedIOException` | `create(Object message)` Constructs a new UncheckedIOException for the given detail message.
    `static UncheckedIOException` | `wrap(IOException e, Object message)` Constructs a new UncheckedIOException for the given detail message.

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

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

- - ### Method Detail

    - #### create

          public static UncheckedIOException create(Object message)

      Constructs a new UncheckedIOException for the given detail message.

      This method exists because there is no String constructor in `UncheckedIOException`.

      Parameters:
        `message` - the detail message.
      Returns:
        a new `UncheckedIOException`.

    - #### wrap

          public static UncheckedIOException wrap(IOException e,
                                                  Object message)

      Constructs a new UncheckedIOException for the given detail message.

      This method exists because there is no String constructor in `UncheckedIOException`.

      Parameters:
        `e` - cause the `IOException`.
        `message` - the detail message.
      Returns:
        a new `UncheckedIOException`.