org.apache.avalon.excalibur.testcase
Class CascadingAssertionFailedError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--junit.framework.AssertionFailedError
|
+--org.apache.avalon.excalibur.testcase.CascadingAssertionFailedError
- All Implemented Interfaces:
- org.apache.avalon.framework.CascadingThrowable, java.io.Serializable
- public class CascadingAssertionFailedError
- extends junit.framework.AssertionFailedError
- implements org.apache.avalon.framework.CascadingThrowable
This is an extention to the testing framework so that we can get detailed
messages from JUnit (The AssertionFailedError hides the underlying cause)
- Version:
- $Id: CascadingAssertionFailedError.java,v 1.3 2001/12/11 09:53:32 jefft Exp $
- Author:
- Giacomo Pati
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CascadingAssertionFailedError
public CascadingAssertionFailedError()
- Constructor with no message
CascadingAssertionFailedError
public CascadingAssertionFailedError(java.lang.String message)
- Constructor with a message
CascadingAssertionFailedError
public CascadingAssertionFailedError(java.lang.String message,
java.lang.Throwable parentThrowable)
- Constructor with a message and a parent exception
getCause
public final java.lang.Throwable getCause()
- Return the parent exception
- Specified by:
getCause
in interface org.apache.avalon.framework.CascadingThrowable
printStackTrace
public final void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public final void printStackTrace(java.io.PrintStream stream)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public final void printStackTrace(java.io.PrintWriter writer)
- Overrides:
printStackTrace
in class java.lang.Throwable
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.