|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.apache.cactus.util.ChainedRuntimeException
Represent an exception that should stop the running test. It is a runtime exception but it will be caught by JUnit so the application will not stop. The test will be reported as failed. It implements chaining.
Constructor Summary | |
ChainedRuntimeException(String theMessage)
Create a TestException and set the exception error
message. |
|
ChainedRuntimeException(String theMessage,
Throwable theException)
Create a ChainedRuntimeException , set the exception error
message along with the exception object that caused this exception. |
|
ChainedRuntimeException(Throwable theException)
Create a ChainedRuntimeException , and set exception object
that caused this exception. |
Method Summary | |
void |
printStackTrace()
Print the full stack trace, including the original exception. |
void |
printStackTrace(PrintStream thePs)
Print the full stack trace, including the original exception. Affected by: LogAspect |
void |
printStackTrace(PrintWriter thePw)
Print the full stack trace, including the original exception. Affected by: LogAspect |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ChainedRuntimeException(String theMessage)
TestException
and set the exception error
message.
theMessage
- the message of the exception
public ChainedRuntimeException(String theMessage, Throwable theException)
ChainedRuntimeException
, set the exception error
message along with the exception object that caused this exception.
theMessage
- the detail of the error message
theException
- the original exception
public ChainedRuntimeException(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 exception
Method Detail |
public void printStackTrace()
public void printStackTrace(PrintStream thePs)
thePs
- the byte stream in which to print the stack trace
around() in LogAspect
.public void printStackTrace(PrintWriter thePw)
thePw
- the character stream in which to print the stack trace
around() in LogAspect
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |