Home | Trees | Indices | Help |
|
---|
|
Error classes for CherryPy.
|
|||
CherryPyException | |||
TimeoutError Exception raised when Response.timed_out is detected. |
|||
InternalRedirect Exception raised to switch to the handler for a different URL. |
|||
HTTPRedirect Exception raised when the request should be redirected. |
|||
HTTPError Exception used to return an HTTP error code (4xx-5xx) to the client. |
|||
NotFound Exception raised when a URL could not be mapped to any handler (404). |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_HTTPErrorTemplate =
|
|||
_ie_friendly_error_sizes =
|
|||
__package__ =
|
|
Return an HTML page, containing a pretty error response. status should be an int or a str. kwargs will be interpolated into the page template. |
Produce status, headers, body for a critical error. Returns a triple without calling any other questionable functions, so it should be as error-free as possible. Call it from an HTTP server if you get errors outside of the request. If extrabody is None, a friendly but rather unhelpful error message is set in the body. If extrabody is a string, it will be appended as-is to the body. |
|
_HTTPErrorTemplate
|
_ie_friendly_error_sizes
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 19 14:12:25 2013 | http://epydoc.sourceforge.net |