Table of Contents

Class ErrorReasons

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

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

string

Canceled

CANCELLED: the caller canceled the call.

public const string Canceled = "CANCELED"

Field Value

string

Conflict

ABORTED: a compare-and-swap lost (an etag or create-only write, a publication fence).

public const string Conflict = "CONFLICT"

Field Value

string

Cycle

FAILED_PRECONDITION: the change would make a group its own ancestor; resource is the group.

public const string Cycle = "CYCLE"

Field Value

string

Deleting

FAILED_PRECONDITION: the item is being deleted (its last group was removed).

public const string Deleting = "DELETING"

Field Value

string

FailedPrecondition

FAILED_PRECONDITION: the call cannot be served in the item's present state.

public const string FailedPrecondition = "FAILED_PRECONDITION"

Field Value

string

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

string

IdExists

ALREADY_EXISTS: a given id is taken; resource is the id.

public const string IdExists = "ID_EXISTS"

Field Value

string

Internal

INTERNAL or UNKNOWN: an unexpected failure, logged by the gateway with the details.

public const string Internal = "INTERNAL"

Field Value

string

InvalidField

INVALID_ARGUMENT: a request field is missing or malformed; field names it.

public const string InvalidField = "INVALID_FIELD"

Field Value

string

NotFound

NOT_FOUND: the item (trigger, state key, service, method) does not exist; resource names it.

public const string NotFound = "NOT_FOUND"

Field Value

string

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

string

OutOfRange

OUT_OF_RANGE: a position before what a stream still holds.

public const string OutOfRange = "OUT_OF_RANGE"

Field Value

string

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

string

ResourceExhausted

RESOURCE_EXHAUSTED: a limit was hit (a paced publish held too long, a stalled subscriber).

public const string ResourceExhausted = "RESOURCE_EXHAUSTED"

Field Value

string

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

string

Unsupported

UNIMPLEMENTED: the gateway does not offer this (not configured, a streaming method through unary invoke).

public const string Unsupported = "UNSUPPORTED"

Field Value

string

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

code StatusCode

Returns

string