cran_error_handler {microCRAN} | R Documentation |
Creates and handle a (error) condition
Description
Creates and handle a (error) condition
Usage
cran_error_handler(req, res, e)
http_condition(status_code, message, ..., type = NULL, call = sys.call(-1))
Arguments
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. |
Value
'NULL' invisibly; called to modify the response.
[Package microCRAN version 0.9.0-1 Index]