org.apache.cactus.client
class ServletExceptionWrapper
java.lang.Object
|
+--java.lang.Throwable
|
+--org.apache.cactus.client.ServletExceptionWrapper
- All Implemented Interfaces:
- Serializable
- Known Advisors:
- LogAspect
- public class ServletExceptionWrapper
- extends java.lang.Throwable
Wrapper around a Throwable
object. Whenever an exception occurs
in a test case executed on the server side, the text of this exception
along with the stack trace as a String are sent back in the HTTP response.
This is because some exceptions are not serializable and because the stack
trace is implemented as a transient
variable by the JDK so it
cannot be transported in the response. However, we need to send a real
exception object to JUnit so that the exception stack trace will be printed
in the JUnit console. This class does this by being a Throwable
and overloading the printStackTrace()
methods to print a
text stack trace.
- Version:
- $Id: ServletExceptionWrapper.html,v 1.1 2003/04/14 12:27:25 sinisa Exp $
- Author:
- Vincent Massol
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServletExceptionWrapper
public ServletExceptionWrapper(String theMessage)
ServletExceptionWrapper
public ServletExceptionWrapper()
ServletExceptionWrapper
public ServletExceptionWrapper(String theMessage,
String theClassName,
String theStackTrace)
instanceOf
public boolean instanceOf(Class theClass)
Affected by: around() in LogAspect
.
printStackTrace
public void printStackTrace(PrintStream thePs)
Affected by: around() in LogAspect
.
printStackTrace
public void printStackTrace(PrintWriter thePw)
Affected by: around() in LogAspect
.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.