Package org.apache.groovy.internal.util
Class UncheckedThrow
java.lang.Object
org.apache.groovy.internal.util.UncheckedThrow
Allows to throw a checked exception unchecked.
INTERNAL USE ONLY.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UncheckedThrow
public UncheckedThrow()
-
-
Method Details
-
rethrow
ThrowscheckedExceptionwithout wrapping it, so a checked exception can leave a method that does not declare it. A null argument is thrown asNullPointerException.- Parameters:
checkedException- throwable to rethrow
-