MCPcopy Create free account
hub / github.com/pallets/flask / code_exception_handler

Function code_exception_handler

tests/test_user_error_handler.py:108–110  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

106
107 @app.errorhandler(403)
108 def code_exception_handler(e):
109 assert isinstance(e, Forbidden)
110 return "forbidden"
111
112 @app.errorhandler(ForbiddenSubclassRegistered)
113 def subclass_exception_handler(e):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected