MCPcopy Index your code
hub / github.com/RustPython/RustPython / handle_error

Method handle_error

Lib/wsgiref/handlers.py:382–388  ·  view source on GitHub ↗

Log current error, and send error output to client if possible

(self)

Source from the content-addressed store, hash-verified

380 exc_info = None
381
382 def handle_error(self):
383 """Log current error, and send error output to client if possible"""
384 self.log_exception(sys.exc_info())
385 if not self.headers_sent:
386 self.result = self.error_output(self.environ, self.start_response)
387 self.finish_response()
388 # XXX else: attempt advanced recovery techniques for HTML or text?
389
390 def error_output(self, environ, start_response):
391 """WSGI mini-app to create error output

Callers 2

runMethod · 0.95
run_cgiMethod · 0.45

Calls 3

log_exceptionMethod · 0.95
error_outputMethod · 0.95
finish_responseMethod · 0.95

Tested by

no test coverage detected