Custom Handler example #8
-
|
In the example at https://nrwldev.github.io/fastapi-problem/handlers/, what is
Also, in
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
I'll expand those docs to include an implementation example of a custom exception, i e. not a subclass of |
Beta Was this translation helpful? Give feedback.
-
|
Documentation has been updated: https://nrwldev.github.io/fastapi-problem/handlers/ I hope this makes the custom handler use case a little clearer. |
Beta Was this translation helpful? Give feedback.
All sublasses of Problem are automatically handled by the exception_handler added to the app using
add_exception_handler. There should be no need for any other action to have them handled.The specific handler for that one is here
fastapi-problem/src/fastapi_problem/handler/fastapi.py
Line 23 in 59c3487