org.apache.cactus.client
Class AssertionFailedErrorWrapper
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--junit.framework.AssertionFailedError
|
+--org.apache.cactus.client.AssertionFailedErrorWrapper
- All Implemented Interfaces:
- java.io.Serializable
- public class AssertionFailedErrorWrapper
- extends junit.framework.AssertionFailedError
Same as ServletExceptionWrapper
except that this exception class
extends JUnit AssertionFailedError
so that JUnit will
print a different message in it's runner console.
- Version:
- $Id: AssertionFailedErrorWrapper.java,v 1.4 2001/09/14 20:14:50 pier Exp $
- Author:
- Vincent Massol
- See Also:
- Serialized Form
Method Summary |
boolean |
instanceOf(java.lang.Class theClass)
As all the server exceptions are wrapped into this
ServletExceptionWrapper class, we need to be able to
know the original server exception class. |
void |
printStackTrace(java.io.PrintStream thePs)
Simulates a printing of a stack trace by printing the string stack trace |
void |
printStackTrace(java.io.PrintWriter thePw)
Simulates a printing of a stack trace by printing the string stack trace |
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 |
AssertionFailedErrorWrapper
public AssertionFailedErrorWrapper(java.lang.String theMessage)
- Standard throwable constructor.
- Parameters:
theMessage
- the exception message
AssertionFailedErrorWrapper
public AssertionFailedErrorWrapper()
- Standard throwable constructor.
AssertionFailedErrorWrapper
public AssertionFailedErrorWrapper(java.lang.String theMessage,
java.lang.String theClassName,
java.lang.String theStackTrace)
- The constructor to use to simulate a real exception.
- Parameters:
theMessage
- the server exception messagetheClassName
- the server exception class nametheStackTrace
- the server exception stack trace
printStackTrace
public void printStackTrace(java.io.PrintStream thePs)
- Simulates a printing of a stack trace by printing the string stack trace
- Overrides:
printStackTrace
in class java.lang.Throwable
- Parameters:
thePs
- the stream to which to output the stack trace
printStackTrace
public void printStackTrace(java.io.PrintWriter thePw)
- Simulates a printing of a stack trace by printing the string stack trace
- Overrides:
printStackTrace
in class java.lang.Throwable
- Parameters:
thePw
- the writer to which to output the stack trace
instanceOf
public boolean instanceOf(java.lang.Class theClass)
- As all the server exceptions are wrapped into this
ServletExceptionWrapper
class, we need to be able to
know the original server exception class.
- Parameters:
theClass
- the class to compare with the server exception class
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.