Public Member Functions | |
def | get |
def | log_exception |
def | write_error |
Definition at line 1435 of file web_test.py.
Definition at line 1436 of file web_test.py.
def tornado::test::web_test.ExceptionHandlerTest::Handler::log_exception | ( | self, | |
typ, | |||
value, | |||
tb | |||
) |
Override to customize logging of uncaught exceptions. By default logs instances of `HTTPError` as warnings without stack traces (on the ``tornado.general`` logger), and all other exceptions as errors with stack traces (on the ``tornado.application`` logger). .. versionadded:: 3.1
Reimplemented from tornado.web.RequestHandler.
Definition at line 1454 of file web_test.py.
def tornado::test::web_test.ExceptionHandlerTest::Handler::write_error | ( | self, | |
status_code, | |||
kwargs | |||
) |
Override to implement custom error pages. ``write_error`` may call `write`, `render`, `set_header`, etc to produce output as usual. If this error was caused by an uncaught exception (including HTTPError), an ``exc_info`` triple will be available as ``kwargs["exc_info"]``. Note that this exception may not be the "current" exception for purposes of methods like ``sys.exc_info()`` or ``traceback.format_exc``.
Reimplemented from tornado.web.RequestHandler.
Definition at line 1445 of file web_test.py.