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.
@author
Vincent Massol
@version $Id: ServletExceptionWrapper.java,v 1.4 2001/09/14 20:15:48 pier Exp $