|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.cactus.util.ChainedException
A checked chained exception.
| Field Summary | |
protected java.lang.Throwable |
originalException
Original exception which caused this exception. |
| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| 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 |
| Field Detail |
protected java.lang.Throwable originalException
| Constructor Detail |
public ChainedException(java.lang.String theMessage)
ChainedException and set the exception error
message.
theMessage - the message of the exception
public 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 exception| Method Detail |
public void printStackTrace()
public void printStackTrace(java.io.PrintStream thePs)
thePs - the byte stream in which to print the stack tracepublic void printStackTrace(java.io.PrintWriter thePw)
thePw - the character stream in which to print the stack trace
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||