Move kGRPCErrorDomain to interface rather than Core implementation

pull/19704/head
Muxi Yan 6 years ago
parent 69f3e27b99
commit ae99e81e40
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m
  2. 3
      src/objective-c/GRPCClient/private/GRPCCore/NSError+GRPC.m

@ -27,6 +27,8 @@
NSString *const kGRPCHeadersKey = @"io.grpc.HeadersKey";
NSString *const kGRPCTrailersKey = @"io.grpc.TrailersKey";
NSString *const kGRPCErrorDomain = @"io.grpc";
/**
* The response dispatcher creates its own serial dispatch queue and target the queue to the
* dispatch queue of a user provided response handler. It removes the requirement of having to use

@ -19,8 +19,7 @@
#import "NSError+GRPC.h"
#include <grpc/grpc.h>
NSString *const kGRPCErrorDomain = @"io.grpc";
#import <GRPCClient/GRPCTypes.h>
@implementation NSError (GRPC)
+ (instancetype)grpc_errorFromStatusCode:(grpc_status_code)statusCode

Loading…
Cancel
Save