34 #import <Foundation/Foundation.h>
37 extern NSString *
const kGRPCErrorDomain;
40 typedef NS_ENUM(NSInteger, GRPCErrorCode) {
41 GRPCErrorCodeCancelled = 1,
42 GRPCErrorCodeUnknown = 2,
43 GRPCErrorCodeInvalidArgument = 3,
44 GRPCErrorCodeDeadlineExceeded = 4,
45 GRPCErrorCodeNotFound = 5,
46 GRPCErrorCodeAlreadyExists = 6,
47 GRPCErrorCodePermissionDenied = 7,
48 GRPCErrorCodeUnauthenticated = 16,
49 GRPCErrorCodeResourceExhausted = 8,
50 GRPCErrorCodeFailedPrecondition = 9,
51 GRPCErrorCodeAborted = 10,
52 GRPCErrorCodeOutOfRange = 11,
53 GRPCErrorCodeUnimplemented = 12,
54 GRPCErrorCodeInternal = 13,
55 GRPCErrorCodeUnavailable = 14,
56 GRPCErrorCodeDataLoss = 15
61 #include <grpc/grpc.h>
63 grpc_status_code status;
71 + (instancetype)grpc_errorFromStatus:(struct
grpc_status *)status;
Definition: NSError+GRPC.h:62
Definition: NSError+GRPC.h:68