jd.util
Class ChainedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjd.util.ChainedRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadArgException, XPathException

public class ChainedRuntimeException
extends RuntimeException

ChainedRuntimeException is a RuntimeException which can store a exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
ChainedRuntimeException()
           
ChainedRuntimeException(String message)
           
ChainedRuntimeException(String message, Throwable exception)
           
ChainedRuntimeException(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

ChainedRuntimeException

public ChainedRuntimeException()

ChainedRuntimeException

public ChainedRuntimeException(String message)

ChainedRuntimeException

public ChainedRuntimeException(Throwable exception)

ChainedRuntimeException

public ChainedRuntimeException(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.