Closed erikzenker closed 3 years ago
Could be implemented by providing something similar to the dispatch table e.g.: unexpectedEventHandlerTable, that contains for every event an array that points for every state id to the unexpectedEventHandler with a call operator.
Fixed with #157
Problem
The unexpected event handler does currently only get the
event
as an parameter, but the current state is unknown to the handler. Thats makes it harder to debug in which state the unexpected event was triggered.Proposed Solution
Provide the current state and parent state to the event handler (at least a string representation of it)