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 - getErrorMessage()

RESTResponseV2 - getErrorMessage()

Get the error message if there was an error during the REST transaction.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The error message.
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 errorMsg = response.getErrorMessage();