Package com.ctc.wstx.util
Class ExceptionUtil
java.lang.Object
com.ctc.wstx.util.ExceptionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IOException
constructIOException
(String msg, Throwable src) static void
setInitCause
(Throwable newT, Throwable rootT) static void
static void
This method is just added for convenience, and only to be used for assertion style of exceptions.static void
static void
throwInternal
(String msg) static void
Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.
-
Constructor Details
-
ExceptionUtil
private ExceptionUtil()
-
-
Method Details
-
throwRuntimeException
Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions. -
constructIOException
-
throwAsIllegalArgument
-
throwIfUnchecked
-
throwGenericInternal
public static void throwGenericInternal()This method is just added for convenience, and only to be used for assertion style of exceptions. For errors that actually occur, method with the string arg should be called instead. -
throwInternal
-
setInitCause
-