Skip to content

Custom error error - Part 4: Exception Handling #1

@cnarvaa

Description

@cnarvaa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions