List of usage examples for org.springframework.statemachine StateContext getException
Exception getException();
From source file:org.springframework.statemachine.support.StateMachineObjectSupport.java
protected void notifyStateMachineError(StateContext<S, E> stateContext) { try {/*from ww w . j ava 2 s.c om*/ stateMachineHandlerCallHelper.callOnStateMachineError(getBeanName(), stateContext); stateListener.stateMachineError(stateContext.getStateMachine(), stateContext.getException()); stateListener.stateContext(stateContext); if (contextEventsEnabled) { StateMachineEventPublisher eventPublisher = getStateMachineEventPublisher(); if (eventPublisher != null) { eventPublisher.publishStateMachineError(this, stateContext.getStateMachine(), stateContext.getException()); } } } catch (Throwable e) { log.warn("Error during notifyStateMachineError", e); } }