Skip to content

Error handling #5

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

Merged
merged 7 commits into from
Mar 3, 2017
Merged

Error handling #5

merged 7 commits into from
Mar 3, 2017

Conversation

WyriHaximus
Copy link
Member

@WyriHaximus WyriHaximus commented Mar 1, 2017

Right now middlewares can reject promises with exceptions but there is no way to to deal with throwables/exceptions coming into from pre, or between pre and post. This PR propose how to deal with those. A specific user for this is turning generic response into HTTP status code specific exceptions: https://github.com/php-api-clients/middleware-http-exceptions

  • Update Interface
  • Add ErrorTrait
  • Update Runner
  • Update Documentation

@WyriHaximus WyriHaximus added this to the 2.0.0 milestone Mar 1, 2017
@WyriHaximus WyriHaximus self-assigned this Mar 1, 2017
@WyriHaximus WyriHaximus merged commit f72e2ce into master Mar 3, 2017
@WyriHaximus WyriHaximus deleted the feature-error-handling branch March 3, 2017 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant