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.java,v 1.3 2004/02/29 09:42:31 vmassol Exp $
|
|
|
|
|
|
|
|