com.bristle.javalib.util
Class ExcUtil
java.lang.Object
com.bristle.javalib.util.ExcUtil
public class ExcUtil
- extends Object
This class contains utility routines for manipulating Java Exceptions,
Errors and Throwables.
Usage:
- The typical scenario for using this class is:
String str = ExcUtil.getStackTrace(throwable);
- See the source code of the inner Tester class for more examples.
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
|
Nested Class Summary |
static class |
ExcUtil.Tester
Each class contains a Tester inner class with a main() for easier
unit testing. |
ExcUtil
public ExcUtil()
getStackTrace
public static String getStackTrace(Throwable e)
- Return the stack trace of the specified Throwable as a String.
- Parameters:
e - Throwable to get the stack trace from.
- Returns:
- Stack trace as a string.