Package com.ctc.wstx.util
Class ExceptionUtil
java.lang.Object
com.ctc.wstx.util.ExceptionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic IOExceptionconstructIOException(String msg, Throwable src) static voidsetInitCause(Throwable newT, Throwable rootT) static voidstatic voidThis method is just added for convenience, and only to be used for assertion style of exceptions.static voidstatic voidthrowInternal(String msg) static voidMethod that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.
-
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
-