public class ChainedException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
originalException
Original exception which caused this exception.
|
Constructor and Description |
---|
ChainedException(java.lang.String theMessage)
Create a
ChainedException and set the exception error
message. |
ChainedException(java.lang.String theMessage,
java.lang.Throwable theException)
Create a
ChainedException , set the exception error
message along with the exception object that caused this exception. |
ChainedException(java.lang.Throwable theException)
Create a
ChaineException , and set exception object
that caused this exception. |
Modifier and Type | Method and Description |
---|---|
void |
printStackTrace()
Print the full stack trace, including the original exception.
|
void |
printStackTrace(java.io.PrintStream thePs)
Print the full stack trace, including the original exception.
|
void |
printStackTrace(java.io.PrintWriter thePw)
Print the full stack trace, including the original exception.
|
protected java.lang.Throwable originalException
public ChainedException(java.lang.String theMessage)
ChainedException
and set the exception error
message.theMessage
- the message of the exceptionpublic ChainedException(java.lang.String theMessage, java.lang.Throwable theException)
ChainedException
, set the exception error
message along with the exception object that caused this exception.theMessage
- the detail of the error messagetheException
- the original exceptionpublic ChainedException(java.lang.Throwable theException)
ChaineException
, and set exception object
that caused this exception. The message is set by default to be the one
from the original exception.theException
- the original exceptionpublic void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream thePs)
printStackTrace
in class java.lang.Throwable
thePs
- the byte stream in which to print the stack tracepublic void printStackTrace(java.io.PrintWriter thePw)
printStackTrace
in class java.lang.Throwable
thePw
- the character stream in which to print the stack traceCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.