mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
21 lines
443 B
Objective-C
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
|