Constructs a ServiceApiError
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="UNKNOWN"
if the error code doesn't adequately represent the error.
the Error code or DEFAULT_ERROR_CODE="UNKNOWN"
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=0
if the status code doesn't adequately represent
the error.
the HTTP Status code or DEFAULT_STATUS_CODE=0
if the status code doesn't adequately represent
the error.
Static
captureGenerated using TypeDoc
ServiceApiError is thrown when an underlying service API call results in an error.
See