|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commons.Exceptions
public final class Exceptions
Helper methods when dealing with exceptions.
Method Summary | |
---|---|
static java.lang.Throwable |
rootCause(java.lang.Throwable t)
Returns the root cause of this exception. |
static java.lang.String |
stackTraceFor(java.lang.Throwable t)
Convert the stack trace for an exception to a string. |
static void |
swallow(java.lang.Throwable t)
Handle an exception that we can do nothing sensible with. |
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 stackTraceFor(java.lang.Throwable t)
t
- The exception for which we want the stack trace.
public static java.lang.Throwable rootCause(java.lang.Throwable t)
t
- The exception to be investigated.
public static void swallow(java.lang.Throwable t)
t
- The exception to ignore.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |