19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#import "OFString.h"
#import "OFHTTPRequest.h"
#import "OFHTTPResponse.h"
@implementation OFHTTPRequestFailedException
@synthesize request = _request, response = _response;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
{
return [[[self alloc] initWithRequest: request
response: response] autorelease];
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
{
self = [super init];
_request = [request retain];
_response = [response retain];
return self;
}
- (void)dealloc
{
[_request release];
[_response release];
[super dealloc];
|
<
<
<
<
<
|
|
>
>
>
>
>
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#import "OFString.h"
#import "OFHTTPRequest.h"
#import "OFHTTPResponse.h"
@implementation OFHTTPRequestFailedException
@synthesize request = _request, response = _response;
+ (instancetype)exceptionWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
{
return [[[self alloc] initWithRequest: request
response: response] autorelease];
}
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)initWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
{
self = [super init];
_request = [request retain];
_response = [response retain];
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_request release];
[_response release];
[super dealloc];
|