|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.util.ThrowableUtil
public final class ThrowableUtil
Helper class around throwables.
| Method Summary | |
|---|---|
static void |
collectNestedData(Loggable loggable)
Pull up nested information. |
static void |
fixChaining(Throwable ex)
Tries to fix the exception chaining for the given Throwable. |
static Map |
getProperties(Throwable thr)
Tries to read additional property like information from this throwable and fills it in a map suitable for detailed information output. |
static String |
toString(Throwable thr)
Dumps the stack trace of the given throwable to its String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void fixChaining(Throwable ex)
ex - the exception to be checked.public static void collectNestedData(Loggable loggable)
getSql() adds the values of these
properties as parameters to the loggable. The search is
stopped when either a Loggable is found in the list,
the end of the chain is reached or after MAX_NESTING_DEPTH
steps down the chain.
loggable - the Loggable to be feed with parameters.public static Map getProperties(Throwable thr)
thr - the throwable to analyze.
public static String toString(Throwable thr)
thr - the throwable to dump the stack trace from.
Throwable.printStackTrace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||