|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.logdoc.ExceptionUtils
Utility functions related to exceptions.
| Method Summary | |
static Throwable |
getCause(Throwable exception)
Determines the cause for the specified exception. |
static Throwable |
getRootCause(Throwable exception)
Determines the root cause for the specified exception. |
static void |
setCause(Throwable exception,
Throwable cause)
Sets the cause for the specified exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Throwable getRootCause(Throwable exception)
exception - the exception to determine the root cause for, can be
null.
null.
public static Throwable getCause(Throwable exception)
throws IllegalArgumentException
exception - the exception to determine the cause for, cannot be
null.
null.
IllegalArgumentException - if exception == null.
public static void setCause(Throwable exception,
Throwable cause)
throws IllegalArgumentException,
IllegalStateException
exception - the exception to set the cause for, cannot be null.cause - the cause exception, can be null but cannot be the
same as exception.
IllegalArgumentException - if exception == null || exception == cause.
IllegalStateException - if the cause exception was already set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||