Skip to Content

Class MemcoPreconditionFailedError

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. detail is the service's own account of what that is.

MemcoSunsetError extends this class, so an instanceof chain testing this one first never reaches it, and comparing name against 'MemcoPreconditionFailedError' never matches it at all. Test for the sunset explicitly, either way.

Hierarchy (View Summary)

Index
code: Status

The gRPC status code, as @grpc/grpc-js's numeric status enum.

codeName: string

The status code's name, such as UNAUTHENTICATED.

detail: string

The service's own description of the failure, without the code prefix.

debugErrorString: string | undefined

gRPC's internal diagnostic string, when the call carried one.