jd.util
Class ChainedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjd.util.ChainedException
All Implemented Interfaces:
Serializable

public class ChainedException
extends Exception

ChainedException is a Exception which can store a exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ChainedException()
           
ChainedException(String message)
           
ChainedException(String message, Throwable exception)
           
ChainedException(Throwable exception)
           
 
Method Summary
 Throwable getException()
          Return the chained exception.
 void printStackTrace()
          Print a stack trace of this exception and any chained exception.
 void printStackTrace(PrintStream out)
          Print a stack trace of this exception and any chained exception.
 void printStackTrace(PrintWriter out)
          Print a stack trace of this excpetion and any Chained exception.
 void setException(Throwable exception)
          Set the chained exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedException

public ChainedException()

ChainedException

public ChainedException(String message)

ChainedException

public ChainedException(Throwable exception)

ChainedException

public ChainedException(String message,
                        Throwable exception)
Method Detail

setException

public void setException(Throwable exception)
Set the chained exception.


getException

public Throwable getException()
Return the chained exception.


printStackTrace

public void printStackTrace()
Print a stack trace of this exception and any chained exception.


printStackTrace

public void printStackTrace(PrintWriter out)
Print a stack trace of this excpetion and any Chained exception.


printStackTrace

public void printStackTrace(PrintStream out)
Print a stack trace of this exception and any chained exception.