Package org.apache.commons.io.function
Class Erase
- java.lang.Object
-
- org.apache.commons.io.function.Erase
-
public final class Erase extends java.lang.ObjectErasesIOExceptionfor the compiler but still throws that exception at runtime.- Since:
- 2.16.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.Throwable>
java.lang.RuntimeExceptionrethrow(java.lang.Throwable throwable)Throws the given throwable.
-
-
-
Method Detail
-
rethrow
public static <T extends java.lang.Throwable> java.lang.RuntimeException rethrow(java.lang.Throwable throwable) throws T extends java.lang.ThrowableThrows 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.T extends java.lang.Throwable
-
-