-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error chaining and handler selection (#595)
* wrap error with errors.Sequence if it is not already an errors.Sequence * get _all_ kinds of inner error _first_ * now the backend timeout error is wrapped with a sequence error, resulting in a different HTTP status code * added test cases for error handler selection: because an error occurs in a request sequence, the default error handling has endpoint error for client, whereas the specific error is logged * changelog entry * Simplify code Co-authored-by: Alex Schneider <alex.schneider@avenga.com>
- Loading branch information
Showing
6 changed files
with
538 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.