all
RPCError.swift:155static let all: [Self]
static let all: [Self]
import GRPCCore
A gRPC library for Swift written natively in Swift.
struct Code
struct RPCError
An error representing the outcome of an RPC.
init?(_ code: Status.Code)
Creates an error code from the given Code
; returns nil
if the code is ok
.
static let aborted: RPCError.Code
The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
static let alreadyExists: RPCError.Code
Some entity that we attempted to create (e.g., file or directory) already exists.
static let cancelled: RPCError.Code
The operation was cancelled (typically by the caller).
static let dataLoss: RPCError.Code
Unrecoverable data loss or corruption.
static let deadlineExceeded: RPCError.Code
Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.
static let failedPrecondition: RPCError.Code
Operation was rejected because the system is not in a state required for the operation’s execution. For example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.
static let internalError: RPCError.Code
Internal errors. Means some invariants expected by underlying System has been broken. If you see one of these errors, Something is very broken.
static let invalidArgument: RPCError.Code
Client specified an invalid argument. Note that this differs from failedPrecondition
. invalidArgument
indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).
static let notFound: RPCError.Code
Some requested entity (e.g., file or directory) was not found.
static let outOfRange: RPCError.Code
Operation was attempted past the valid range. E.g., seeking or reading past end of file.
static let permissionDenied: RPCError.Code
The caller does not have permission to execute the specified operation. permissionDenied
must not be used for rejections caused by exhausting some resource (use resourceExhausted
instead for those errors). permissionDenied
must not be used if the caller can not be identified (use unauthenticated
instead for those errors).
static let resourceExhausted: RPCError.Code
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
static let unauthenticated: RPCError.Code
The request does not have valid authentication credentials for the operation.
static let unavailable: RPCError.Code
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.
static let unimplemented: RPCError.Code
Operation is not implemented or not supported/enabled in this service.
static let unknown: RPCError.Code
Unknown error. An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.
var description: String { get }
var rawValue: Int { get }
The numeric value of the error code.