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
ConstructorDescriptionRollbackTransitionException
(Enum<?> stateFrom, Enum<?> stateTo, String sReason) Constructs aRollbackTransitionException
with the specified from and to states.RollbackTransitionException
(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause) Constructs aRollbackTransitionException
with the specified from and to states. -
Method Summary
Modifier and TypeMethodDescriptionEnum
<?> Obtain the state from which theTransition
was rolled back.Enum
<?> Obtain the state to which theTransition
did 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 aRollbackTransitionException
with the specified from and to states.- Parameters:
stateFrom
- the state from which theTransition
was being madestateTo
- the state to which theTransition
was being madesReason
- the reason for the rollback
-
RollbackTransitionException
Constructs aRollbackTransitionException
with the specified from and to states.- Parameters:
stateFrom
- the state from which theTransition
was being madestateTo
- the state to which theTransition
was being madecause
- the underlying exception that caused the rollback
-
-
Method Details
-
getStateFrom
Obtain the state from which theTransition
was rolled back.- Returns:
- the state from which the
Transition
was rolled back
-
getStateTo
Obtain the state to which theTransition
did not occur.- Returns:
- the state to which the
Transition
did not occur
-