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
ARollbackTransitionExceptionmay be thrown during anTransitionActionfor aTransitionif the saidTransitionshould 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 aRollbackTransitionExceptionwith the specified from and to states.RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause)Constructs aRollbackTransitionExceptionwith 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 theTransitionwas rolled back.Enum<?>getStateTo()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 Detail
-
RollbackTransitionException
public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, String sReason)
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
public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause)
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 Detail
-
getStateFrom
public Enum<?> getStateFrom()
Obtain the state from which theTransitionwas rolled back.- Returns:
- the state from which the
Transitionwas rolled back
-
getStateTo
public Enum<?> getStateTo()
Obtain the state to which theTransitiondid not occur.- Returns:
- the state to which the
Transitiondid not occur
-
-