org.apache.avalon.framework
Class ExceptionUtil
java.lang.Object
|
+--org.apache.avalon.framework.ExceptionUtil
- public final class ExceptionUtil
- extends java.lang.Object
This class provides basic facilities for manipulating exceptions.
Some exception handling stuff thieved from Turbine...
- Author:
- Peter Donald, Rafal Krzewski
Method Summary |
static java.lang.String[] |
captureStackTrace(java.lang.Throwable throwable)
Captures the stack trace associated with this exception. |
static java.lang.String |
printStackTrace(java.lang.Throwable throwable)
|
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
boolean printCascading)
|
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
int depth)
|
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
int depth,
boolean printCascading)
|
static java.lang.String[] |
splitString(java.lang.String string,
java.lang.String onToken)
Deprecated. This is an internal utility method that should not be used |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
printStackTrace
public static java.lang.String printStackTrace(java.lang.Throwable throwable)
printStackTrace
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
boolean printCascading)
printStackTrace
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
int depth)
printStackTrace
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
int depth,
boolean printCascading)
captureStackTrace
public static java.lang.String[] captureStackTrace(java.lang.Throwable throwable)
- Captures the stack trace associated with this exception.
- Returns:
- an array of Strings describing stack frames.
splitString
public static java.lang.String[] splitString(java.lang.String string,
java.lang.String onToken)
- Deprecated. This is an internal utility method that should not be used
- Splits the string on every token into an array of stack frames.
- Parameters:
string
- the stringonToken
- the token- Returns:
- the resultant array
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."