MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / all_exception_handler

Function all_exception_handler

web/pgadmin/__init__.py:958–960  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

956
957 @app.errorhandler(Exception)
958 def all_exception_handler(e):
959 current_app.logger.error(e, exc_info=True)
960 return internal_server_error(errormsg=str(e))
961
962 # Exclude HTTPexception from above handler (all_exception_handler)
963 # HTTPException are user defined exceptions and those should be returned

Callers

nothing calls this directly

Calls 2

internal_server_errorFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected