Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

RESTResponseV2 - haveError()

RESTResponseV2 - haveError()

Indicate if there was an error during the REST transaction.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
boolean Returns true if there was an error, false if there was no error.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var response = sm.execute();
var error = response.haveError();