From: Ben Darnell Date: Sun, 16 Sep 2012 20:01:16 +0000 (-0700) Subject: Mention HTTPError explicitly in the write_error docs. X-Git-Tag: v3.0.0~272^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4044f96c9675e393f7b7b3d566df95d32f9dc3bc;p=thirdparty%2Ftornado.git Mention HTTPError explicitly in the write_error docs. Closes #594. --- diff --git a/tornado/web.py b/tornado/web.py index af398181b..cc780054c 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -755,10 +755,11 @@ class RequestHandler(object): ``write_error`` may call `write`, `render`, `set_header`, etc to produce output as usual. - If this error was caused by an uncaught exception, 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``. + 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``. For historical reasons, if a method ``get_error_html`` exists, it will be used instead of the default ``write_error`` implementation.