Class Rethrow
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.Rethrow
-
public final class Rethrow extends java.lang.Object
Rethrowing checked exceptions as unchecked ones. Eh, it is sometimes useful...
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Rethrow.Rethrower<T extends java.lang.Throwable>
Classy puzzler to rethrow any checked exception as an unchecked one.
-
Constructor Summary
Constructors Constructor Description Rethrow()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.RuntimeException
rethrow(java.lang.Throwable t)
Rethrowst
(identical object).
-