org.sape.carbon.core.component.lifecycle
Class NonFatalStateTransitionException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.sape.carbon.core.exception.BaseRuntimeException
|
+--org.sape.carbon.core.component.ComponentException
|
+--org.sape.carbon.core.component.lifecycle.LifecycleException
|
+--org.sape.carbon.core.component.lifecycle.StateTransitionException
|
+--org.sape.carbon.core.component.lifecycle.NonFatalStateTransitionException
- All Implemented Interfaces:
- Exceptionable, Serializable
- public class NonFatalStateTransitionException
- extends StateTransitionException
This exception should be thrown from lifecycle methods to signal that
even though an exception occured within the lifecycle method, the component
is still valid and the lifecycle interceptor should return the
component to its last good state. Any other exception will signal to the
lifecycle interceptor that the component is corrupt and should be destroyed.
Copyright 2002 Sapient
- Since:
- carbon 1.0
- Version:
- $Revision: 1.7 $($Author: dvoet $ / $Date: 2003/05/05 21:21:13 $)
- Author:
- Douglas Voet, Aug 13, 2002
- See Also:
- Serialized Form
Fields inherited from class java.lang.Throwable |
|
Method Summary |
SeverityEnum |
getSeverity()
This method must be overriden by subclasses so that
they may declare their severity |
NonFatalStateTransitionException
public NonFatalStateTransitionException(Class sourceClass,
String message)
- Constructor for NonFatalStateTransitionException.
- Parameters:
sourceClass
- The source class of this exceptionmessage
- string information relating to this exception
NonFatalStateTransitionException
public NonFatalStateTransitionException(Class sourceClass,
String message,
Throwable cause)
- Constructor for NonFatalStateTransitionException.
- Parameters:
sourceClass
- The source class of this exceptionmessage
- string information relating to this exceptioncause
- a throwable that can be considered the cause
of the current exception (used in levelizing exceptions)
getSeverity
public SeverityEnum getSeverity()
- Description copied from class:
BaseRuntimeException
- This method must be overriden by subclasses so that
they may declare their severity
- Specified by:
getSeverity
in interface Exceptionable
- Overrides:
getSeverity
in class StateTransitionException
- See Also:
Exceptionable.getSeverity()
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.