Class Exceptions
java.lang.Object
com.github.mjeanroy.dbunit.commons.lang.Exceptions
Static Exception Utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionCoerce an unchecked Throwable to aRuntimeExceptionIf the Throwable is anError, throw it; if it is aRuntimeExceptionreturn it, otherwise throwIllegalStateException.
-
Method Details
-
launderThrowable
Coerce an unchecked Throwable to aRuntimeExceptionIf the Throwable is anError, throw it; if it is aRuntimeExceptionreturn it, otherwise throwIllegalStateException.- Parameters:
t- THe original exception.- Returns:
- The wrapped exception.
-