public class ExceptionUtils extends ExceptionUtils
ExceptionUtils class extends the
ExceptionUtils.| Constructor and Description |
|---|
ExceptionUtils()
Instantiates a new
ExceptionUtils object. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Throwable> |
withCause(E e,
Throwable cause)
Initializes the cause for this exception.
|
static <E extends Throwable> |
withRootCause(E e,
Throwable cause)
Initializes the root cause for this exception.
|
getCause, getCause, getDefaultCauseMethodNames, getMessage, getRootCause, getRootCauseMessage, getRootCauseStackTrace, getStackFrames, getStackTrace, getThrowableCount, getThrowableList, getThrowables, indexOfThrowable, indexOfThrowable, indexOfType, indexOfType, printRootCauseStackTrace, printRootCauseStackTrace, printRootCauseStackTrace, removeCommonFramespublic static <E extends Throwable> E withCause(E e, Throwable cause)
E - the type of exception to initializee - the exception to initialize its causecause - the cause to initialize the exception withpublic static <E extends Throwable> E withRootCause(E e, Throwable cause)
This method will attach the specified cause to the end of the exception set of causes.
E - the type of exception to initializee - the exception to initialize its route causecause - the cause to initialize the exception withCopyright (C) 2015-2015 The Helenus Driver Project Authors.