|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xmlmind.util.ThrowableUtil
public final class ThrowableUtil
A collection of utility functions (static methods) related to Exceptions.
| Method Summary | |
|---|---|
static java.lang.String |
detailedReason(java.lang.Throwable e)
Equivalent to detailedReason(e, 1). |
static java.lang.String |
detailedReason(java.lang.Throwable e,
int maxCauses)
Same as reason(java.lang.Throwable) except that the stack trace of specified
exception is integrated to returned message. |
static void |
detailedReason(java.lang.Throwable e,
java.lang.StringBuilder buffer)
Copies both the message and the stack trace of specified exception to specified buffer. |
static java.lang.String |
reason(java.lang.Throwable e)
Returns the message of specified exception. |
static java.lang.String |
reasonLine(java.lang.Throwable e)
One line describing specified Throwable in a comprehensive way. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String reason(java.lang.Throwable e)
public static java.lang.String reasonLine(java.lang.Throwable e)
More detailed than (single-line) reason(java.lang.Throwable) and less detailed
than (multi-line) detailedReason(java.lang.Throwable).
public static java.lang.String detailedReason(java.lang.Throwable e)
detailedReason(e, 1).
public static java.lang.String detailedReason(java.lang.Throwable e,
int maxCauses)
reason(java.lang.Throwable) except that the stack trace of specified
exception is integrated to returned message.
e - the Throwable to be formattedmaxCauses - in case of a chained Throwable,
maximum number of causes (Throwable.getCause())
to be included in the formatted string
public static void detailedReason(java.lang.Throwable e,
java.lang.StringBuilder buffer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||