state_machine
state_machine copied to clipboard
StateMachine Errors
This pull request contains changes that structure errors when the context fails, and also returns information to makes it easier to understand the reason of the error.
- Add errors structures (
CallbackError,GuardNotAllow,SetError,UnknownEvent,UnresolvedTransition). - Return error response
{:error, %Error{}}instead of failed context.