com.ctc.wstx.util
public final class ExceptionUtil extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
setInitCause(java.lang.Throwable newT,
java.lang.Throwable rootT) |
static void |
throwAsIllegalArgument(java.lang.Throwable t) |
static void |
throwGenericInternal()
This method is just added for convenience, and only to be used for
assertion style of exceptions.
|
static void |
throwIfUnchecked(java.lang.Throwable t) |
static void |
throwInternal(java.lang.String msg) |
static void |
throwRuntimeException(java.lang.Throwable t)
Method that can be used to convert any Throwable to a RuntimeException;
conversion is only done for checked exceptions.
|
public static void throwRuntimeException(java.lang.Throwable t)
public static void throwAsIllegalArgument(java.lang.Throwable t)
public static void throwIfUnchecked(java.lang.Throwable t)
public static void throwGenericInternal()
public static void throwInternal(java.lang.String msg)
public static void setInitCause(java.lang.Throwable newT, java.lang.Throwable rootT)