currently when process an unsupported event on a state, workflow will raise NoTransitionAllowed error but without triggering the on_error hook, so I cannot do centralized error handling, I must check the event or rescue all event triggering everywhere to handle NoTransitionAllowed exception.
This PR will catch the exception to on_error hook, so I can do error handling in the hook.
currently when process an unsupported event on a state, workflow will raise NoTransitionAllowed error but without triggering the on_error hook, so I cannot do centralized error handling, I must check the event or rescue all event triggering everywhere to handle NoTransitionAllowed exception. This PR will catch the exception to on_error hook, so I can do error handling in the hook.