Public Member Functions | Public Attributes
tornado.web.HTTPError Class Reference
Inheritance diagram for tornado.web.HTTPError:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 args
 log_message
 reason
 status_code

Detailed Description

An exception that will turn into an HTTP error response.

Raising an `HTTPError` is a convenient alternative to calling
`RequestHandler.send_error` since it automatically ends the
current function.

To customize the response sent with an `HTTPError`, override
`RequestHandler.write_error`.

:arg int status_code: HTTP status code.  Must be listed in
    `httplib.responses <http.client.responses>` unless the ``reason``
    keyword argument is given.
:arg string log_message: Message to be written to the log for this error
    (will not be shown to the user unless the `Application` is in debug
    mode).  May contain ``%s``-style placeholders, which will be filled
    in with remaining positional parameters.
:arg string reason: Keyword-only argument.  The HTTP "reason" phrase
    to pass in the status line along with ``status_code``.  Normally
    determined automatically from ``status_code``, but can be used
    to use a non-standard numeric code.

Definition at line 1921 of file web.py.


Constructor & Destructor Documentation

def tornado.web.HTTPError.__init__ (   self,
  status_code,
  log_message = None,
  args,
  kwargs 
)

Definition at line 1943 of file web.py.


Member Function Documentation

Definition at line 1949 of file web.py.


Member Data Documentation

Definition at line 1943 of file web.py.

Definition at line 1943 of file web.py.

Definition at line 1943 of file web.py.

Definition at line 1943 of file web.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Jun 6 2019 21:51:51