Class MemcoPreconditionFailedError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoPreconditionFailedError
Constructors
constructor
-
new MemcoPreconditionFailedError(
code: Status,
detail: string,
debugErrorString?: string,
): MemcoPreconditionFailedErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoPreconditionFailedError
Properties
Readonlycode
code: Status
The gRPC status code, as @grpc/grpc-js's numeric status enum.
ReadonlycodeName
codeName: string
The status code's name, such as UNAUTHENTICATED.
Readonlydetail
detail: string
The service's own description of the failure, without the code prefix.
ReadonlydebugErrorString
debugErrorString: string | undefined
gRPC's internal diagnostic string, when the call carried one.
The service refused because the caller's state does not allow the call.
Billing, account standing, terms — something outside the request has to change, so neither a retry nor a different argument gets past it.
detailis the service's own account of what that is.MemcoSunsetError extends this class, so an
instanceofchain testing this one first never reaches it, and comparingnameagainst'MemcoPreconditionFailedError'never matches it at all. Test for the sunset explicitly, either way.