flask-rest-api-blog-series icon indicating copy to clipboard operation
flask-rest-api-blog-series copied to clipboard

Custom error error - Part 4: Exception Handling

Open cnarvaa opened this issue 4 years ago • 0 comments

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.

cnarvaa avatar May 16 '20 13:05 cnarvaa