Package com.tangosol.util.fsm
Class RollbackTransitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.tangosol.util.fsm.RollbackTransitionException
- All Implemented Interfaces:
Serializable
A
RollbackTransitionException may be thrown during an TransitionAction
for a Transition if the said Transition should be aborted. ie: no state
change should occur.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, String sReason) Constructs aRollbackTransitionExceptionwith the specified from and to states.RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause) Constructs aRollbackTransitionExceptionwith the specified from and to states. -
Method Summary
Modifier and TypeMethodDescriptionEnum<?> Obtain the state from which theTransitionwas rolled back.Enum<?> Obtain the state to which theTransitiondid not occur.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RollbackTransitionException
Constructs aRollbackTransitionExceptionwith the specified from and to states.- Parameters:
stateFrom- the state from which theTransitionwas being madestateTo- the state to which theTransitionwas being madesReason- the reason for the rollback
-
RollbackTransitionException
Constructs aRollbackTransitionExceptionwith the specified from and to states.- Parameters:
stateFrom- the state from which theTransitionwas being madestateTo- the state to which theTransitionwas being madecause- the underlying exception that caused the rollback
-
-
Method Details
-
getStateFrom
Obtain the state from which theTransitionwas rolled back.- Returns:
- the state from which the
Transitionwas rolled back
-
getStateTo
Obtain the state to which theTransitiondid not occur.- Returns:
- the state to which the
Transitiondid not occur
-