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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
*
* @brief An exception indicating that an HTTP request failed.
*/
@interface OFHTTPRequestFailedException: OFException
{
OFHTTPRequest *_request;
OFHTTPResponse *_response;
}
/**
* @brief The HTTP request which failed.
*/
@property (readonly, nonatomic) OFHTTPRequest *request;
/**
* @brief The response for the failed HTTP request.
*/
@property (readonly, nonatomic) OFHTTPResponse *response;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased HTTP request failed exception.
*
* @param request The HTTP request which failed
* @param response The response for the failed HTTP request
* @return A new, autoreleased HTTP request failed exception
*/
+ (instancetype)exceptionWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response;
- (instancetype)init OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated HTTP request failed exception.
*
* @param request The HTTP request which failed
* @param response The response for the failed HTTP request
* @return A new HTTP request failed exception
*/
- (instancetype)initWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
OF_DESIGNATED_INITIALIZER;
@end
OF_ASSUME_NONNULL_END
|
>
<
<
|
>
>
|
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
*
* @brief An exception indicating that an HTTP request failed.
*/
@interface OFHTTPRequestFailedException: OFException
{
OFHTTPRequest *_request;
OFHTTPResponse *_response;
OF_RESERVE_IVARS(OFHTTPRequestFailedException, 4)
}
/**
* @brief The HTTP request which failed.
*/
@property (readonly, nonatomic) OFHTTPRequest *request;
/**
* @brief The response for the failed HTTP request.
*/
@property (readonly, nonatomic) OFHTTPResponse *response;
/**
* @brief Creates a new, autoreleased HTTP request failed exception.
*
* @param request The HTTP request which failed
* @param response The response for the failed HTTP request
* @return A new, autoreleased HTTP request failed exception
*/
+ (instancetype)exceptionWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated HTTP request failed exception.
*
* @param request The HTTP request which failed
* @param response The response for the failed HTTP request
* @return A new HTTP request failed exception
*/
- (instancetype)initWithRequest: (OFHTTPRequest *)request
response: (OFHTTPResponse *)response
OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|