public final class ExceptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
getRootCause(Throwable throwable)
Gets the root cause of the given
Throwable. |
public static Throwable getRootCause(Throwable throwable)
Throwable.
This method walks through the exception chain up to the root of the exceptions tree using
Throwable.getCause(), and returns the root exception.
throwable - the throwable to get the root cause for, may be null - this is to avoid throwing other
un-interesting exception when handling a business-important exceptionThrowable, null if none found or null throwable inputCopyright © 2020 Nuxeo SA. All rights reserved.