|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.ExceptionUtil
public final class ExceptionUtil
Useful utilities for Exceptions
Method Summary | |
---|---|
static Throwable[] |
getCauses(Throwable start)
Get the chain of exceptions via getCause(). |
static Throwable |
getRootCause(Throwable e)
Get the original troublemaker. |
static String |
getStackTrace(Throwable t)
Get the stack trace as a String. |
static String |
toString(Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toString(Throwable t)
public static Throwable[] getCauses(Throwable start)
start
- the Exception to traverse
public static Throwable getRootCause(Throwable e)
e
- the Exception to dig into
public static String getStackTrace(Throwable t)
t
- the Throwabe whose stack trace should be gotten
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.