I'm using Spring StateMachine 2.0.2 and can find hasStateMachineError() on StateMachine which is nice to check whether an error happened during transition. The problem is, there's no method to actually access what exception occurred. It would be nice if there would be something like getStateMachineError() or something to get access to the exception that was thrown.