net.spy.util
Class NestedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.spy.util.NestedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthException, BrokenPromiseException, SaveException

public class NestedException
extends Exception

An Exception that will allow chaining of another Throwable.

See Also:
Serialized Form

Constructor Summary
NestedException(String msg)
          Get an instance of NestedException with a given message.
NestedException(String msg, Throwable t)
          Get a NestedException 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

NestedException

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


NestedException

public NestedException(String msg,
                       Throwable t)
Get a NestedException 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).