ServiceUsageError

ServiceUsageError

ServiceUsageError is thrown when either service usage limit has been reached or credentials quota has been exhausted.

Members

(constant) DEFAULT_STATUS_CODE :number

Description:
  • The default value of status code if there is no status code for this service failure.

The default value of status code if there is no status code for this service failure.

Type:
  • number

(constant) DEFAULT_ERROR_CODE :string

Description:
  • The default value of error code if there is no error code for this service failure.

The default value of error code if there is no error code for this service failure.

Type:
  • string

Methods

getStatusCode() → {number}

Description:
  • Returns the HTTP Status code or DEFAULT_STATUS_CODE if the status code doesn't adequately represent the error.

Returns:
Type
number

getErrorCode() → {string}

Description:
  • Returns the Error code or DEFAULT_ERROR_CODE if the error code doesn't adequately represent the error.

Returns:
Type
string

getMessage() → {string}

Description:
  • Returns the detailed message of this error.

Returns:

the detail message

Type
string

getRequestTrackingId() → {string}

Description:
  • Returns the Request ID (the value of the X-Request-ID header).

Returns:
Type
string

toString() → {string}

Description:
  • Returns a user-friendly interpretation of the current error instance.

Returns:
Type
string