Package com.sun.enterprise.util
Class ExceptionUtil
java.lang.Object
com.sun.enterprise.util.ExceptionUtil
Useful utilities for Exceptions
Subset of methods copied from org.glassfish.admin.amx.util
-
Method Details
-
getCauses
Get the chain of exceptions via getCause(). The first element is the Exception passed.- Parameters:
start- the Exception to traverse- Returns:
- a Throwable[] or an Exception[] as appropriate
-
getRootCause
Get the original troublemaker.- Parameters:
e- the Exception to dig into- Returns:
- the original Throwable that started the problem
-
getStackTrace
Get the stack trace as a String.- Parameters:
t- the Throwabe whose stack trace should be gotten- Returns:
- a String containing the stack trace
-