R

Ravina • 3.96K Points
Extraordinary

Q. In FastAPI, where are custom exception handlers registered?

  • (A) app.error()
  • (B) app.catch()
  • (C) app.exception_handler()
  • (D) app.custom_error()
  • Correct Answer - Option(C)
  • Views: 32
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`@app.exception_handler()` is used to define custom error handlers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.