]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Mention HTTPError explicitly in the write_error docs.
authorBen Darnell <ben@bendarnell.com>
Sun, 16 Sep 2012 20:01:16 +0000 (13:01 -0700)
committerBen Darnell <ben@bendarnell.com>
Sun, 16 Sep 2012 20:01:16 +0000 (13:01 -0700)
Closes #594.

tornado/web.py

index af398181bb0d3e7e49757e8813f877a6bf1d8be2..cc780054c563166f006903475984493f6d99bd58 100644 (file)
@@ -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.