Skip to content
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

Add error handling documentation in README #584

Closed
ErikPelli opened this issue Dec 20, 2024 · 1 comment · Fixed by #598
Closed

Add error handling documentation in README #584

ErikPelli opened this issue Dec 20, 2024 · 1 comment · Fixed by #598

Comments

@ErikPelli
Copy link
Collaborator

Currently, when there is an erorr, a custom Error field in ctx is set, before calling the response handler.
Show an example where the error can be handled by the response handler, returning a custom response with custom data.
This prevents proposal like a custom error handler made by who doesn't know about this feature.

@ErikPelli
Copy link
Collaborator Author

Result of handling is similar to #51 (comment)
Specify also the connection error handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant