com.interface21.core
Interface HasRootCause

All Known Implementing Classes:
ErrorCodedPropertyVetoException, NestedCheckedException, NestedRuntimeException

public interface HasRootCause

Interface to be implemented by exceptions that have a root cause. This enables exceptions that don't share a common superclass to expose a root cause consistently. This will no longer be necessary in Java 1.4, although it won't be incompatible.

Version:
$Id: HasRootCause.java,v 1.1.1.1 2003/02/11 08:10:18 johnsonr Exp $
Author:
Rod Johnson

Method Summary
 java.lang.Throwable getRootCause()
          Return the root cause of this exception
 

Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Return the root cause of this exception
Returns:
the root cause of this exception, or null if there was no root cause


Rod Johnson and Spring contributors 2001-2003.