Class MemcoInternalError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoInternalError
Constructors
constructor
-
new MemcoInternalError(
code: Status,
detail: string,
debugErrorString?: string,
): MemcoInternalErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoInternalError
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 failed in a way it does not describe to callers.
Also where any status this SDK maps to no class of its own lands. Either way it is not the caller's bug, and there is nothing in the request to fix. MemcoAPIError.codeName says which status arrived — a code
@grpc/grpc-jsdoes not recognise reads asUNKNOWN— and is what to log alongsidedetail.Nothing here says the call would have succeeded a moment later, so this is not the one to put a backoff loop around.