net.spy.util
Class NestedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynet.spy.util.NestedRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SpySecurityException

public class NestedRuntimeException
extends RuntimeException

An Exception that will allow chaining of another Throwable.

See Also:
Serialized Form

Constructor Summary
protected NestedRuntimeException()
          Get an instance of NestedRuntimeException with no message.
  NestedRuntimeException(String msg)
          Get an instance of NestedRuntimeException with a given message.
  NestedRuntimeException(String msg, Throwable t)
          Get a NestedRuntimeException with a given message and root cause throwable.
 
Method Summary
 Throwable getCause()
          Get the root cause of this problem.
 Throwable getRootCause()
          Get the root cause of this problem.
 void printStackTrace()
          Print the stack and the root stack (if any).
 void printStackTrace(PrintStream s)
          Print the stack and the root stack (if any).
 void printStackTrace(PrintWriter s)
          Print the stack and the root stack (if any).
protected  void setRootCause(Throwable cause)
          Set the root cause of this problem.
 String toString()
          String me.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedRuntimeException

protected NestedRuntimeException()
Get an instance of NestedRuntimeException with no message.


NestedRuntimeException

public NestedRuntimeException(String msg)
Get an instance of NestedRuntimeException with a given message.


NestedRuntimeException

public NestedRuntimeException(String msg,
                              Throwable t)
Get a NestedRuntimeException with a given message and root cause throwable.

Method Detail

getRootCause

public Throwable getRootCause()
Get the root cause of this problem.


getCause

public Throwable getCause()
Get the root cause of this problem.


setRootCause

protected void setRootCause(Throwable cause)
Set the root cause of this problem.


toString

public String toString()
String me.


printStackTrace

public void printStackTrace(PrintStream s)
Print the stack and the root stack (if any).


printStackTrace

public void printStackTrace(PrintWriter s)
Print the stack and the root stack (if any).


printStackTrace

public void printStackTrace()
Print the stack and the root stack (if any).