RESTResponseV2 - getErrorMessage()

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

Table 1. Parameters
Name Type Description
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();