public final class ExceptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getExceptionMessage(List throwables)
Find a throwable message starting with the last element.
|
static List |
getExceptions(Throwable cause)
returns a list of all throwables (including the one you passed in) wrapped by the given throwable.
|
public static List getExceptions(Throwable cause)
returns a list of all throwables (including the one you passed in) wrapped by the given throwable.
In contrast to a simple call to getClause() on each throwable it will also check if
the throwable class contain a method getRootCause() (e.g. ServletException or JspException)
and call it instead.
The first list element will your passed in exception, the last list element is the cause.
Copyright © 2025 The Apache Software Foundation. All rights reserved.