Mainly for use within the framework.
NestedRuntimeException, NestedCheckedException
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the full exception messagethe base message message, Throwable the root cause cause)
Deprecated
since 6.0. as of 6.0, in favor of custom exception messages
with selective inclusion of cause messages
Build a message for the given base message and root cause. |
| public static Throwable | Returns: the most specific cause (nevernull)the original exception to introspect original)Retrieve the most specific cause of the given exception, that is, either the innermost cause (root cause) or the exception itself. |
| public static Throwable | Returns: the innermost exception, ornull if nonethe original exception to introspect original)Retrieve the innermost cause of the given exception, if any. |
| NestedExceptionUtils | back to summary |
|---|---|
| public NestedExceptionUtils() | |
| buildMessage | back to summary |
|---|---|
| public static String buildMessage(String message, Throwable cause)
Deprecated since 6.0. as of 6.0, in favor of custom exception messages with selective inclusion of cause messages Build a message for the given base message and root cause.
| |
| getMostSpecificCause | back to summary |
|---|---|
| public static Throwable getMostSpecificCause(Throwable original) Retrieve the most specific cause of the given exception, that is, either the innermost cause (root cause) or the exception itself. Differs from | |
| getRootCause | back to summary |
|---|---|
| public static Throwable getRootCause(Throwable original) Retrieve the innermost cause of the given exception, if any. | |