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
Generic event representing that state machine has been entered in
error it cannot recover.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionOnStateMachineError
(Object source, StateMachine<?, ?> stateMachine, Exception exception) Instantiates a new on state exit event. -
Method Summary
Modifier and TypeMethodDescriptionGets the exception.StateMachine<?,
?> Gets the statemachine.toString()
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
OnStateMachineError
Instantiates a new on state exit event.- Parameters:
source
- the sourcestateMachine
- the statemachineexception
- the exception
-
-
Method Details
-
getStateMachine
Gets the statemachine.- Returns:
- the statemachine
-
getException
Gets the exception.- Returns:
- the exception
-
toString
- Overrides:
toString
in classStateMachineEvent
-