stopIfHiveError | R Documentation |
This is a convenience function to terminate if the result of an HTTP request contains an error message.
stopIfHiveError(x)
x |
A variable returned by |
The system may return a JSON-encoded list containing a single element,
named error
, containing an error message. If so, it is extracted to
an error message during termination (see below).
If the argument x
is of class simpleError
, the function
processes the error message as needed and terminates with the error;
otherwise, the argument x
is returned.
Adam C. Gower agower@bu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.