Class OnStateMachineError

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.statemachine.event.StateMachineEvent
org.springframework.statemachine.event.OnStateMachineError
All Implemented Interfaces:
Serializable

public class OnStateMachineError extends StateMachineEvent
Generic event representing that state machine has been entered in error it cannot recover.
Author:
Janne Valkealahti
See Also:
  • Constructor Details

    • OnStateMachineError

      public OnStateMachineError(Object source, StateMachine<?,?> stateMachine, Exception exception)
      Instantiates a new on state exit event.
      Parameters:
      source - the source
      stateMachine - the statemachine
      exception - the exception
  • Method Details

    • getStateMachine

      public StateMachine<?,?> getStateMachine()
      Gets the statemachine.
      Returns:
      the statemachine
    • getException

      public Exception getException()
      Gets the exception.
      Returns:
      the exception
    • toString

      public String toString()
      Overrides:
      toString in class StateMachineEvent