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

Custom error error - Part 4: Exception Handling #1

Open
cnarvaa opened this issue May 16, 2020 · 0 comments
Open

Custom error error - Part 4: Exception Handling #1

cnarvaa opened this issue May 16, 2020 · 0 comments

Comments

@cnarvaa
Copy link

cnarvaa commented May 16, 2020

Hey, I was following the exception handling post and the exceptions were not added into my response.
According to the documentation

Custom Exceptions must have HTTPException as the base Exception.

So doing something like class InternalServerError(HTTPException) worked for me.

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

No branches or pull requests

1 participant