Keel 2.1RC2

org.apache.avalon.excalibur.pool.test
Class CascadingAssertionFailedError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byjunit.framework.AssertionFailedError
              extended byorg.apache.avalon.excalibur.pool.test.CascadingAssertionFailedError
All Implemented Interfaces:
CascadingThrowable, java.io.Serializable

public class CascadingAssertionFailedError
extends junit.framework.AssertionFailedError
implements 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.2 2004/03/29 16:50:37 mcconnell Exp $
Author:
See Also:
Serialized Form

Field Summary
private  java.lang.Throwable m_throwable
           
 
Fields inherited from class java.lang.Error
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CascadingAssertionFailedError()
          Constructor with no message
CascadingAssertionFailedError(java.lang.String message)
          Constructor with a message
CascadingAssertionFailedError(java.lang.String message, java.lang.Throwable parentThrowable)
          Constructor with a message and a parent exception
 
Method Summary
 java.lang.Throwable getCause()
          Return the parent exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_throwable

private final java.lang.Throwable m_throwable
Constructor Detail

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

Method Detail

getCause

public final java.lang.Throwable getCause()
Return the parent exception

Specified by:
getCause in interface CascadingThrowable

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.