I would like to get something like an exception or any hint, when I send an event which is not possible in the current state of the machine.
Instead of an exception, nothing happens. The only thing that I noticed is:
stateMachine.sendEvent(myMessage)
returns false. But the following method does not return true:
stateMachine.hasStateMachineError()
so I guess there is no exception...!?
Does anybody know how I could get an error like "This event can not be applied in the current state of the state machine"?
Thanks a lot in advance!