|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.exception.ExceptionUtils
Exposes utility methods for handling exceptions
Method Summary | |
static java.lang.String |
getFullStackTrace(java.lang.Throwable e)
Gets the full stack trace as a string. |
static java.lang.Throwable |
getNestedExceptionByClass(java.lang.Throwable e,
java.lang.Class exceptionClass)
Gets the nested exception if exception is an instance of the exceptionClass or if exception implements FoundationsExceptionInterface and one of the nested exceptions is an instance of the type exceptionClass. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getFullStackTrace(java.lang.Throwable e)
e
-
public static java.lang.Throwable getNestedExceptionByClass(java.lang.Throwable e, java.lang.Class exceptionClass)
If desired instance of exceptionClass is not found in the nested exception stack then null is returned.
Can be used to unwind nested exception stack that implement FoundationsExceptionInterface.
e
- exceptionClass
-
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |