dynaop.util
Class NestedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bydynaop.util.NestedException
All Implemented Interfaces:
java.io.Serializable

public class NestedException
extends java.lang.RuntimeException

Turns a nested exception into a runtime exception.

Author:
Bob Lee (crazybob@crazybob.org)
See Also:
Serialized Form

Method Summary
 java.lang.String getMessage()
           
 java.lang.Throwable getNested()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter out)
           
 java.lang.String toString()
           
static java.lang.RuntimeException wrap(java.lang.Throwable t)
          Wrap another exeception in a RuntimeException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

wrap

public static java.lang.RuntimeException wrap(java.lang.Throwable t)
Wrap another exeception in a RuntimeException.


toString

public java.lang.String toString()

getMessage

public java.lang.String getMessage()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream out)

printStackTrace

public void printStackTrace(java.io.PrintWriter out)

getNested

public java.lang.Throwable getNested()