public class ChainedRuntimeException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Throwable |
originalException
Original exception which caused this exception.
|
| Constructor and Description |
|---|
ChainedRuntimeException(java.lang.String theMessage)
Create a
ChainedRuntimeException and set the exception
error message. |
ChainedRuntimeException(java.lang.String theMessage,
java.lang.Throwable theException)
Create a
ChainedRuntimeException, set the exception error
message along with the exception object that caused this exception. |
ChainedRuntimeException(java.lang.Throwable theException)
Create a
ChainedRuntimeException, 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 ChainedRuntimeException(java.lang.String theMessage)
ChainedRuntimeException and set the exception
error message.theMessage - the message of the exceptionpublic ChainedRuntimeException(java.lang.String theMessage,
java.lang.Throwable theException)
ChainedRuntimeException, set the exception error
message along with the exception object that caused this exception.theMessage - the detail of the error messagetheException - the original exceptionpublic ChainedRuntimeException(java.lang.Throwable theException)
ChainedRuntimeException, 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.Throwablepublic void printStackTrace(java.io.PrintStream thePs)
printStackTrace in class java.lang.ThrowablethePs - the byte stream in which to print the stack tracepublic void printStackTrace(java.io.PrintWriter thePw)
printStackTrace in class java.lang.ThrowablethePw - the character stream in which to print the stack traceCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.