Skip to content

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