Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Errors in Change Pipeline #1

Open
jeffbcross opened this issue Jul 30, 2013 · 1 comment
Open

Handle Errors in Change Pipeline #1

jeffbcross opened this issue Jul 30, 2013 · 1 comment
Assignees
Milestone

Comments

@jeffbcross
Copy link
Owner

If something goes wrong at any stage of the change pipeline, there's nothing that gives the developer an opportunity to handle errors.

For example:

  • What if the protocol rejects a model update?

SyncResource should provide a flexible means of reacting to things going wrong.

@jeffbcross
Copy link
Owner Author

A couple of ideas came out of an IRL conversation with @ritch about this.

  • Maybe a middleware in the change pipeline could implement a special error-handling signature, and would automatically get called if any part of the change pipeline called next("some error");
  • OmniBinder could provide a library of out-of-the-box error-handling middlewares, such as one that reverts a model if the change failed to be applied to a protocol.

@ghost ghost assigned jeffbcross Sep 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant