edu.neu.ccs.util
Class StackTrace

java.lang.Object
  extended byedu.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.


Constructor Summary
StackTrace()
           
 
Method Summary
static String getTrace(Throwable t)
          Returns the stack trace of the given Throwable as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTrace

public StackTrace()
Method Detail

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