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
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 Details

    • RollbackTransitionException

      public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, String sReason)
      Constructs a RollbackTransitionException with the specified from and to states.
      Parameters:
      stateFrom - the state from which the Transition was being made
      stateTo - the state to which the Transition was being made
      sReason - the reason for the rollback
    • RollbackTransitionException

      public RollbackTransitionException(Enum<?> stateFrom, Enum<?> stateTo, Throwable cause)
      Constructs a RollbackTransitionException with the specified from and to states.
      Parameters:
      stateFrom - the state from which the Transition was being made
      stateTo - the state to which the Transition was being made
      cause - the underlying exception that caused the rollback
  • Method Details

    • getStateFrom

      public Enum<?> getStateFrom()
      Obtain the state from which the Transition was rolled back.
      Returns:
      the state from which the Transition was rolled back
    • getStateTo

      public Enum<?> getStateTo()
      Obtain the state to which the Transition did not occur.
      Returns:
      the state to which the Transition did not occur