Class RollbackTransitionException

    • Constructor Detail

      • 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 Detail

      • 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