Class ErrorReasons
The stable google.rpc.ErrorInfo reasons of the api's failures (openspec
write-results), defined once here for the gateway, the WorkManager (which reuses this list
and defines none of its own) and every C# caller. A failure is a
non-OK gRPC status whose details hold one ErrorInfo with Domain,
one of these reasons, and, where it applies, FieldKey and
ResourceKey in its metadata. The list is documented in the api docs
(reference, "Errors"); a reason, once published, keeps its meaning.
public static class ErrorReasons
- Inheritance
-
ErrorReasons
- Inherited Members
Fields
AccessDenied
UNAUTHENTICATED or PERMISSION_DENIED: the caller may not make this call.
public const string AccessDenied = "ACCESS_DENIED"
Field Value
Canceled
CANCELLED: the caller canceled the call.
public const string Canceled = "CANCELED"
Field Value
Conflict
ABORTED: a compare-and-swap lost (an etag or create-only write, a publication fence).
public const string Conflict = "CONFLICT"
Field Value
Cycle
FAILED_PRECONDITION: the change would make a group its own ancestor; resource is the group.
public const string Cycle = "CYCLE"
Field Value
Deleting
FAILED_PRECONDITION: the item is being deleted (its last group was removed).
public const string Deleting = "DELETING"
Field Value
FailedPrecondition
FAILED_PRECONDITION: the call cannot be served in the item's present state.
public const string FailedPrecondition = "FAILED_PRECONDITION"
Field Value
GroupNotFound
FAILED_PRECONDITION: a group named in the request does not exist; resource is the group.
public const string GroupNotFound = "GROUP_NOT_FOUND"
Field Value
IdExists
ALREADY_EXISTS: a given id is taken; resource is the id.
public const string IdExists = "ID_EXISTS"
Field Value
Internal
INTERNAL or UNKNOWN: an unexpected failure, logged by the gateway with the details.
public const string Internal = "INTERNAL"
Field Value
InvalidField
INVALID_ARGUMENT: a request field is missing or malformed; field names it.
public const string InvalidField = "INVALID_FIELD"
Field Value
NotFound
NOT_FOUND: the item (trigger, state key, service, method) does not exist; resource names it.
public const string NotFound = "NOT_FOUND"
Field Value
NotMember
FAILED_PRECONDITION: the item is not a member of the group named; resource is the item, field the group field.
public const string NotMember = "NOT_MEMBER"
Field Value
OutOfRange
OUT_OF_RANGE: a position before what a stream still holds.
public const string OutOfRange = "OUT_OF_RANGE"
Field Value
PartialFailure
ABORTED: a call on several items did part of its work; a further detail lists the per-item outcome.
public const string PartialFailure = "PARTIAL_FAILURE"
Field Value
ResourceExhausted
RESOURCE_EXHAUSTED: a limit was hit (a paced publish held too long, a stalled subscriber).
public const string ResourceExhausted = "RESOURCE_EXHAUSTED"
Field Value
Unavailable
UNAVAILABLE or DEADLINE_EXCEEDED: a backend, the sidecar or the store did not answer; retrying may help.
public const string Unavailable = "UNAVAILABLE"
Field Value
Unsupported
UNIMPLEMENTED: the gateway does not offer this (not configured, a streaming method through unary invoke).
public const string Unsupported = "UNSUPPORTED"
Field Value
Methods
ForStatus(StatusCode)
The reason a failure of code carries when the code says it all:
what the gateway attaches to a status raised without its own ErrorInfo.
public static string ForStatus(StatusCode code)
Parameters
codeStatusCode