Class MemcoResourceExhaustedError
Hierarchy (View Summary)
- MemcoAPIError
- MemcoResourceExhaustedError
Constructors
constructor
-
new MemcoResourceExhaustedError(
code: Status,
detail: string,
debugErrorString?: string,
): MemcoResourceExhaustedErrorParameters
- code: Status
- detail: string
OptionaldebugErrorString: string
Returns MemcoResourceExhaustedError
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.
Readonlykind
Whether a rate limit or a longer-window quota was reached.
An allowance ran out.
Read kind before retrying: a rate limit clears on a backoff, a quota will not refill on one, and ResourceExhaustedKind.UNKNOWN means the message did not say — treat it as a rate limit.
The transport does not retry this on the caller's behalf, precisely because which of the two it is decides whether retrying is worth anything, and only the caller can act on that.