public final class ExceptionUtil extends ExceptionUtilRt
Modifier and Type | Method and Description |
---|---|
static boolean |
causedBy(java.lang.Throwable e,
java.lang.Class<?> klass) |
static java.lang.String |
currentStackTrace() |
static <T> T |
findCause(java.lang.Throwable e,
java.lang.Class<T> klass) |
static java.lang.String |
getMessage(java.lang.Throwable e) |
static java.lang.String |
getNonEmptyMessage(java.lang.Throwable t,
java.lang.String defaultMessage) |
static java.lang.Throwable |
getRootCause(java.lang.Throwable e) |
static java.lang.String |
getThrowableText(java.lang.Throwable t) |
static java.lang.String |
getThrowableText(java.lang.Throwable aThrowable,
java.lang.String stackFrameSkipPattern) |
static java.lang.String |
getUserStackTrace(java.lang.Throwable aThrowable,
Logger logger) |
static java.lang.Throwable |
makeStackTraceRelative(java.lang.Throwable th,
java.lang.Throwable relativeTo) |
static void |
rethrow(java.lang.Throwable throwable) |
static void |
rethrowAll(java.lang.Throwable t) |
static void |
rethrowAllAsUnchecked(java.lang.Throwable t) |
static void |
rethrowUnchecked(java.lang.Throwable t) |
public static java.lang.Throwable getRootCause(java.lang.Throwable e)
public static <T> T findCause(java.lang.Throwable e, java.lang.Class<T> klass)
public static boolean causedBy(java.lang.Throwable e, java.lang.Class<?> klass)
public static java.lang.Throwable makeStackTraceRelative(java.lang.Throwable th, java.lang.Throwable relativeTo)
public static java.lang.String currentStackTrace()
public static java.lang.String getThrowableText(java.lang.Throwable t)
public static java.lang.String getThrowableText(java.lang.Throwable aThrowable, java.lang.String stackFrameSkipPattern)
public static java.lang.String getUserStackTrace(java.lang.Throwable aThrowable, Logger logger)
public static java.lang.String getMessage(java.lang.Throwable e)
public static void rethrowUnchecked(java.lang.Throwable t)
public static void rethrowAll(java.lang.Throwable t) throws java.lang.Exception
java.lang.Exception
public static void rethrow(java.lang.Throwable throwable)
public static void rethrowAllAsUnchecked(java.lang.Throwable t)
public static java.lang.String getNonEmptyMessage(java.lang.Throwable t, java.lang.String defaultMessage)