MCPcopy Index your code
hub / github.com/bugy/script-server / write_error

Method write_error

src/web/server.py:108–117  ·  view source on GitHub ↗
(self, status_code, **kwargs)

Source from the content-addressed store, hash-verified

106 return
107
108 def write_error(self, status_code, **kwargs):
109 if ('exc_info' in kwargs) and (kwargs['exc_info']):
110 (type, value, traceback) = kwargs['exc_info']
111 (custom_code, custom_message) = exception_to_code_and_message(value)
112
113 if custom_code:
114 respond_error(self, custom_code, custom_message)
115 return
116
117 respond_error(self, status_code, self._reason)
118
119
120class BaseStaticHandler(tornado.web.StaticFileHandler):

Callers

nothing calls this directly

Calls 2

respond_errorFunction · 0.90

Tested by

no test coverage detected