Help
GetErrorString
Gets the error code for the current state of the API instance.
Syntax
GetErrorString(String code) : String
Parameters
Returns
The error string text that corresponds to the specified code.
Example
This example gets the last error code and reports the associated error message.
var api = findApiHost(window);
api.Initialize("");
var code = api.GetLastError("");
if (code == '0') {
  alert("No error!');
} else {
  alert(GetErrorString(code));
}
See Also
GetLastError