public final class ExceptionUtils extends Object
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 © 2014 Nuxeo SA. All rights reserved.