|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fullspan.util.ExceptionUtil
Static utility methods for exceptions (this class has a private constructor and cannot be instantiated).
| Method Summary | |
static java.lang.String |
getExceptionMessage(java.lang.Throwable t)
Return the message for a Throwable. |
static java.lang.String |
getExceptionMessage(java.lang.Throwable t,
boolean reportRootCause)
Return the message for a Throwable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String getExceptionMessage(java.lang.Throwable t)
Equivalent to calling getExceptionMessage(t, true)
t - the Throwable whose message will be returned
getExceptionMessage(Throwable, boolean)
public static java.lang.String getExceptionMessage(java.lang.Throwable t,
boolean reportRootCause)
First, the Throwable whose message to return is selected.
Second, the message for the selected Throwable is computed.
t - the Throwable whose message will be returnedreportRootCause - if true, then getCause is called in a loop to
get the inner-most root cause Throwable, and the message is returned for
that Throwable. If false, the message is returned for the original
passed-in Throwable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||