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.

$Id:,v 2003/02/11 08:10:18 johnsonr Exp $
Rod Johnson

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

Method Detail


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

Rod Johnson and Spring contributors 2001-2003.