Help
GetLastError
Gets the error code for the current state of the API instance.
Syntax
GetLastError() : String
Returns
The current state of the API instance. "0" indicates no error.
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
GetErrorString