org.jwarp.common
Class ACascadingException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.jwarp.common.ACascadingException
All Implemented Interfaces:
ICascadingException, java.io.Serializable

public abstract class ACascadingException
extends java.lang.Exception
implements ICascadingException

Class from which all exceptions should inherit. Allows recording of nested exceptions.

Author:
Peter Donald
See Also:
Serialized Form

Constructor Summary
ACascadingException(java.lang.String message, java.lang.Exception e)
          Construct a new CascadingException instance.
 
Method Summary
 void addException(java.lang.Exception exception)
          Add an exception
 java.util.Iterator getExceptions()
          Retrieve root cause of the exception.
 void removeException(java.lang.Exception exception)
          Remove an exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jwarp.common.ICascadingException
addException
 

Constructor Detail

ACascadingException

public ACascadingException(java.lang.String message,
                           java.lang.Exception e)
Construct a new CascadingException instance.
Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception
Method Detail

addException

public final void addException(java.lang.Exception exception)
Add an exception
Parameters:
exception - The exception
source - The source object

removeException

public final void removeException(java.lang.Exception exception)
Remove an exception
Specified by:
removeException in interface ICascadingException
Parameters:
exception - The exception

getExceptions

public final java.util.Iterator getExceptions()
Retrieve root cause of the exception.
Specified by:
getExceptions in interface ICascadingException
Returns:
the root cause

©   O R C A   S y s t e m s