Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from bryanagee/wording-suggestion
Browse files Browse the repository at this point in the history
Changes following->subsequent for clarity
  • Loading branch information
Paul M. Jones committed Jun 10, 2015
2 parents 8ad8131 + 48f35d2 commit 9383059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $queue[] = new \Relay\Middleware\ResponseSender();

## ExceptionHandler

Similarly, the _ExceptionHandler_ does what it sound like: it catches any exceptions that bubble up through the following middleware decorators.
Similarly, the _ExceptionHandler_ does what it sound like: it catches any exceptions that bubble up through the subsequent middleware decorators.

The _ExceptionHandler_ does nothing with the `$request` or `$response`, and passes them directly to `$next` inside a `try/catch` block. If no exception bubbles up, it returns the `$response` from `$next`. However, if it catches an exception, it returns an entirely new `$response` object with the exception message and an HTTP 500 status code. It then returns the new `$response` object.

Expand Down

0 comments on commit 9383059

Please sign in to comment.