org.hackystat.utilities.stacktrace
Class StackTrace

java.lang.Object
  extended by org.hackystat.utilities.stacktrace.StackTrace

public final class StackTrace
extends java.lang.Object

Provides a simple solution to the common problem of obtaining a String containing the stack trace produced by an exception.

Call StackTrace.toString(e) to get the string corresponding to the Exception e.

Author:
Philip Johnson, Takuya Yamashita

Method Summary
static java.lang.String toString(java.lang.Throwable throwable)
          Converts the Throwable.getStackTrace to a String representation for logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public static java.lang.String toString(java.lang.Throwable throwable)
Converts the Throwable.getStackTrace to a String representation for logging.

Parameters:
throwable - The Throwable exception.
Returns:
A String containing the StackTrace.