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