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

Function subclass_exception_handler

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

Source from the content-addressed store, hash-verified

111
112 @app.errorhandler(ForbiddenSubclassRegistered)
113 def subclass_exception_handler(e):
114 assert isinstance(e, ForbiddenSubclassRegistered)
115 return "forbidden-registered"
116
117 @app.route("/forbidden")
118 def forbidden_test():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected