1 19 package org.apache.avalon.excalibur.pool.test; 20 21 import junit.framework.AssertionFailedError; 22 23 import org.apache.avalon.framework.CascadingThrowable; 24 25 32 public class CascadingAssertionFailedError 33 extends AssertionFailedError 34 implements CascadingThrowable 35 { 36 private final Throwable m_throwable; 37 38 41 public CascadingAssertionFailedError() 42 { 43 this( null, null ); 44 } 45 46 49 public CascadingAssertionFailedError( String message ) 50 { 51 this( message, null ); 52 } 53 54 57 public CascadingAssertionFailedError( String message, 58 Throwable parentThrowable ) 59 { 60 super( message ); 61 m_throwable = parentThrowable; 62 } 63 64 67 public final Throwable getCause() 68 { 69 return m_throwable; 70 } 71 } 72 | Popular Tags |