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:
Serializable
Known Advisors:
LogAspect

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.html,v 1.1 2003/04/14 12:27:23 sinisa Exp $
Author:
Vincent Massol

Constructor Summary
AssertionFailedErrorWrapper(String theMessage)
           
AssertionFailedErrorWrapper()
           
AssertionFailedErrorWrapper(String theMessage, String theClassName, String theStackTrace)
           
 
Method Summary
 boolean instanceOf(Class theClass)
           Affected by: LogAspect
 void printStackTrace(PrintStream thePs)
           Affected by: LogAspect
 void printStackTrace(PrintWriter thePw)
           Affected by: LogAspect
 
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
 

Constructor Detail

AssertionFailedErrorWrapper

public AssertionFailedErrorWrapper(String theMessage)

AssertionFailedErrorWrapper

public AssertionFailedErrorWrapper()

AssertionFailedErrorWrapper

public AssertionFailedErrorWrapper(String theMessage,
                                   String theClassName,
                                   String theStackTrace)
Method Detail

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.