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
public class RollbackTransitionException extends Exception
ARollbackTransitionException
may be thrown during anTransitionAction
for aTransition
if the saidTransition
should be aborted. ie: no state change should occur.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RollbackTransitionException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enum<?>
getStateFrom()
Obtain the state from which theTransition
was rolled back.Enum<?>
getStateTo()
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 Detail
-
RollbackTransitionException
public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, String sReason)
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
public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause)
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 Detail
-
getStateFrom
public Enum<?> getStateFrom()
Obtain the state from which theTransition
was rolled back.- Returns:
- the state from which the
Transition
was rolled back
-
getStateTo
public Enum<?> getStateTo()
Obtain the state to which theTransition
did not occur.- Returns:
- the state to which the
Transition
did not occur
-
-