2020-02-20 01:37:54 +04:00

21 lines
443 B
Objective-C

#import <MtProtoKit/MTRpcError.h>
@implementation MTRpcError
- (instancetype)initWithErrorCode:(int32_t)errorCode errorDescription:(NSString *)errorDescription
{
self = [super init];
if (self != nil)
{
_errorCode = errorCode;
_errorDescription = errorDescription;
}
return self;
}
- (NSString *)description {
return [[NSString alloc] initWithFormat:@"%d: %@", _errorCode, _errorDescription];
}
@end