com.bristle.javalib.util
Class ExcUtil

java.lang.Object
  extended by 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.
 
Constructor Summary
ExcUtil()
           
 
Method Summary
static String getStackTrace(Throwable e)
          Return the stack trace of the specified Throwable as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcUtil

public ExcUtil()
Method Detail

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.