|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.common.utils.ExceptionUtils
public final class ExceptionUtils
Provides utility methods for manipulating and examining exceptions in a generic way.
Method Summary | |
---|---|
static java.lang.Throwable |
getRootCause(java.lang.Throwable throwable)
Gets the root cause of the given Throwable . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Throwable getRootCause(java.lang.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 exception
Throwable
,
null
if none found or null throwable input
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |