edu.neu.ccs.util
Class StackTrace
java.lang.Object
edu.neu.ccs.util.StackTrace
- public class StackTrace
- extends Object
Class StackTrace provides a static
method to return the stack trace of a
Throwable as a String.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackTrace
public StackTrace()
getTrace
public static String getTrace(Throwable t)
Returns the stack trace of the given
Throwable as a String.
If the given throwable is null,
the string returned is an error message.
- Parameters:
t - the Throwable