Class MemcoUnavailableError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoUnavailableError
Constructors
constructor
-
Parameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoUnavailableError
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 could not be reached, or was not ready to answer.
The one failure here a backoff is the right answer to: nothing about the request is wrong. The transport already replays it — three attempts in all — on MemoryOperations.listDomains, MemoryOperations.getMemory and the health probe, so seeing it from one of those means all three failed. Every other method is left alone, because replaying a write can record it twice, so retrying one of those is the caller's decision and carries that risk.
MemcoUnhealthyError extends this class, so an
instanceofchain testing this one first never reaches it, and comparingnameagainst'MemcoUnavailableError'never matches it at all. Test for the unhealthy case explicitly, either way.