TrogonProto.Error.V1Alpha1.Code (Trogon.Proto v0.11.1)

Copy Markdown View Source

The canonical error codes for gRPC APIs.

This enum mirrors the error values from google.rpc.Code so typed error templates can point at the canonical Google RPC error space without importing google.rpc.

OK is intentionally omitted because this enum is used only for errors.

Sometimes multiple error codes may apply. Services should return the most specific error code that applies. For example, prefer OUT_OF_RANGE over FAILED_PRECONDITION if both codes apply. Similarly prefer NOT_FOUND or ALREADY_EXISTS over FAILED_PRECONDITION.

Source: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

Summary

Types

t()

@type t() ::
  integer()
  | :UNSPECIFIED
  | :CANCELLED
  | :UNKNOWN
  | :INVALID_ARGUMENT
  | :DEADLINE_EXCEEDED
  | :NOT_FOUND
  | :ALREADY_EXISTS
  | :PERMISSION_DENIED
  | :RESOURCE_EXHAUSTED
  | :FAILED_PRECONDITION
  | :ABORTED
  | :OUT_OF_RANGE
  | :UNIMPLEMENTED
  | :INTERNAL
  | :UNAVAILABLE
  | :DATA_LOSS
  | :UNAUTHENTICATED

Functions

descriptor()