Skip to content

how to use customer exception handler by APIRouter? #1667

@WhyTimePass

Description

@WhyTimePass

I want to write different handler with different APIRouter, but when i use APIRouter().exception_handler,the ide notice me no that "AttributeError : 'APIRouter' object has no attribute 'exception_handler'...
how can i use customer exception handler with different APIRouter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions