Package com.ctc.wstx.util
Class ExceptionUtil
- java.lang.Object
-
- com.ctc.wstx.util.ExceptionUtil
-
public final class ExceptionUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IOExceptionconstructIOException(String msg, Throwable src)static voidsetInitCause(Throwable newT, Throwable rootT)static voidthrowAsIllegalArgument(Throwable t)static voidthrowGenericInternal()This method is just added for convenience, and only to be used for assertion style of exceptions.static voidthrowIfUnchecked(Throwable t)static voidthrowInternal(String msg)static voidthrowRuntimeException(Throwable t)Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.
-
-
-
Method Detail
-
throwRuntimeException
public static void throwRuntimeException(Throwable t)
Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.
-
constructIOException
public static IOException constructIOException(String msg, Throwable src)
-
throwAsIllegalArgument
public static void throwAsIllegalArgument(Throwable t)
-
throwIfUnchecked
public static void throwIfUnchecked(Throwable t)
-
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
public static void throwInternal(String msg)
-
-