Skip to content

Feat/custom error handler registration - #2185

Open
cloutierMat wants to merge 10 commits into
aws:masterfrom
inqli:feat/custom-error-handler-registration
Open

Feat/custom error handler registration#2185
cloutierMat wants to merge 10 commits into
aws:masterfrom
inqli:feat/custom-error-handler-registration

Conversation

@cloutierMat

Copy link
Copy Markdown

Motivation

As pointed out in #1884, the current middleware don't allow for third party exception handling. This makes it really tricky to cleanly support handling certain runtime errors. More information about the current implementation proposal found in #2056.

Change

Added mechanism to register an error handler for http events, both through a @app.error decorator or through app.register_error_handler.

Replaces #2064, this pr is now rebased on latest changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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

Successfully merging this pull request may close these issues.

1 participant