22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#import "MTXLogoutFailedException.h"
#import "MTXClient.h"
@implementation MTXClientException
+ (instancetype)exceptionWithStatusCode: (int)statusCode
response: (mtx_response_t)response
client: (MTXClient *)client
{
return [[[self alloc] initWithStatusCode: statusCode
response: response
client: client] autorelease];
}
- (instancetype)initWithStatusCode: (int)statusCode
response: (mtx_response_t)response
client: (MTXClient *)client
{
self = [super init];
@try {
_statusCode = statusCode;
_response = [response copy];
|
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#import "MTXLogoutFailedException.h"
#import "MTXClient.h"
@implementation MTXClientException
+ (instancetype)exceptionWithStatusCode: (int)statusCode
response: (MTXResponse)response
client: (MTXClient *)client
{
return [[[self alloc] initWithStatusCode: statusCode
response: response
client: client] autorelease];
}
- (instancetype)initWithStatusCode: (int)statusCode
response: (MTXResponse)response
client: (MTXClient *)client
{
self = [super init];
@try {
_statusCode = statusCode;
_response = [response copy];
|