cran_error_handler | R Documentation |
Creates and handle a (error) condition
cran_error_handler(req, res, e)
http_condition(status_code, message, ..., type = NULL, call = sys.call(-1))
req, res |
A "request"- and "response"-object, respectively |
e |
The error/[condition][base::conditions] that was thrown by a handler, preferable a [http_condition]. |
status_code |
Integer HTTP Status Code |
message |
Optional message to display (text). |
... |
Other things to include in exception. |
type |
Type of condition to generate. Must be one of 'error', 'warning' or 'message'. |
call |
The call stored in the condition object. |
'NULL' invisibly; called to modify the response.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.