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

Method report_error

tests/test_user_error_handler.py:244–250  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

242 return app
243
244 def report_error(self, e):
245 original = getattr(e, "original_exception", None)
246
247 if original is not None:
248 return f"wrapped {type(original).__name__}"
249
250 return f"direct {type(e).__name__}"
251
252 @pytest.mark.parametrize("to_handle", (InternalServerError, 500))
253 def test_handle_class_or_code(self, app, client, to_handle):

Callers 2

handle_500Method · 0.95
handle_exceptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected