dynaop.util
Class NestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by dynaop.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()
Overrides:
toString in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Overrides:
printStackTrace in class java.lang.Throwable

getNested

public java.lang.Throwable getNested()