Constructs a ServiceUsageError with the specified detail message, request tracking id, status code and
error code.
error message detail
X-Request-Id header value to track the request
Optional statusCode: numberHTTP Status code returned in API response
Optional errorCode: stringError code returned in API response
Private Readonly _errorPrivate Readonly _requestPrivate Readonly _statusOptional stackStatic Private DEFAULT_the default value of error code if there is no error code for this service failure.
Static Private DEFAULT_the default value of status code if there is no status code for this service failure.
Static Optional prepareOptional override for formatting stack traces
Static stackReturns the Error code or DEFAULT_ERROR_CODE="TOO_MANY_REQUESTS" if the error code doesn't adequately represent the error.
the Error code or DEFAULT_ERROR_CODE="TOO_MANY_REQUESTS" if the error code doesn't adequately represent the error.
Returns the detail message of this error.
the message detail.
Returns the Request ID (the value of the X-Request-ID header).
Request ID
Returns the HTTP Status code or DEFAULT_STATUS_CODE=429 if the status code doesn't adequately represent
the error.
the HTTP Status code or DEFAULT_STATUS_CODE=429 if the status code doesn't adequately represent
the error.
Static captureGenerated using TypeDoc
ServiceUsageError is thrown when either Service usage limit has been reached or credentials quota has been exhausted.
See