MCPcopy Index your code
hub / github.com/webpy/webpy / InternalError

Function InternalError

web/webapi.py:372–379  ·  view source on GitHub ↗

Returns HTTPError with '500 internal error' error from the active application.

(message=None)

Source from the content-addressed store, hash-verified

370
371
372def InternalError(message=None):
373 """Returns HTTPError with '500 internal error' error from the active application."""
374 if message:
375 return _InternalError(message)
376 elif ctx.get("app_stack"):
377 return ctx.app_stack[-1].internalerror()
378 else:
379 return _InternalError()
380
381
382internalerror = InternalError

Callers

nothing calls this directly

Calls 3

_InternalErrorClass · 0.85
internalerrorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected