state_machine icon indicating copy to clipboard operation
state_machine copied to clipboard

StateMachine Errors

Open AndreiBaly opened this issue 1 year ago • 0 comments

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.

AndreiBaly avatar May 12 '23 13:05 AndreiBaly