Package org.apache.commons.io.function

# Class Erase

java.lang.Object
org.apache.commons.io.function.Erase

public final class Erase extends Object
Erases `IOException` for the compiler but still throws that exception at runtime.

Since:
  2.16.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <T extends Throwable>
  RuntimeException`
  `rethrow(Throwable throwable)`
  Throws the given throwable.

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

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

- ## Method Details

  - ### rethrow

    public static <T extends Throwable> RuntimeException rethrow(Throwable throwable) throws T
    Throws the given throwable.
    Type Parameters:
      `T` - The throwable cast type.
    Parameters:
      `throwable` - The throwable to rethrow.
    Returns:
      nothing because we throw.
    Throws:
      `T` - Always thrown.