The error object contains an error code and message if an error occurs during a method call. All system-generated errors have an error code of 500.

Object members

This object contains the following members:

Name Description Type
code The numeric code used to identify the error. All system-generated errors return a code of 500. integer
name The unique identifier for the specific error that occurred. Each method returns a documented set of errors, although you should be prepared to handle unrecognized errors as well. string
message A description of the error, possibly with additional details. string