#[repr(u8)]pub enum ErrorCode {
InvalidArgument = 1,
Unauthenticated = 2,
PermissionDenied = 3,
NotFound = 4,
FailedPrecondition = 5,
Unavailable = 6,
DeadlineExceeded = 7,
ResourceExhausted = 8,
Cancelled = 9,
ProtocolError = 10,
Internal = 11,
AlreadyExists = 12,
}Expand description
Stable wire error codes whose discriminants are part of protocol version 3.
Variants§
InvalidArgument = 1
A request field is malformed or violates the contract.
Unauthenticated = 2
The operation credential is missing, expired, or unverifiable.
PermissionDenied = 3
The verified credential does not authorize the operation.
NotFound = 4
No Binding or Pipe matches the requested Destination or identifier.
FailedPrecondition = 5
The current state does not allow the operation.
The serving side cannot accept the operation at this time.
DeadlineExceeded = 7
The operation did not reach a terminal result within its deadline.
ResourceExhausted = 8
Covers admission, capacity, queue, and size limits.
Cancelled = 9
The initiator abandoned the operation before it completed.
ProtocolError = 10
A peer violated the wire protocol or state-machine contract.
Internal = 11
A local invariant or task failed without a peer protocol violation.
AlreadyExists = 12
The requested registration already exists.