wt.util
Class DebugStackTrace

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by wt.util.DebugStackTrace
All Implemented Interfaces:
Serializable

public class DebugStackTrace
extends Exception

A debug utility for printing debug messages with a stack trace.

Supported API: true
Extendable false

See Also:
Serialized Form

Constructor Summary
DebugStackTrace(String msg)
          Constructs a new DebugStackTrace object with the associated message

Supported API: true
 
Method Summary
static String getCallStack(int depth)
          Returns specific depth of calls as a comma separated String.
static void println(String msg)
          Prints a debug message to System.out along with a stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DebugStackTrace

public DebugStackTrace(String msg)
Constructs a new DebugStackTrace object with the associated message

Supported API: true

Parameters:
msg - a message to include in print
Method Detail

println

public static void println(String msg)
Prints a debug message to System.out along with a stack trace.

Supported API: true

Parameters:
msg - a message to include in print

getCallStack

public static String getCallStack(int depth)
Returns specific depth of calls as a comma separated String.

Supported API: true

Parameters:
depth - the number stack elements to include; a value of zero will include entire stack