Differences From Artifact [1c80228554]:
- File
src/exceptions/OFHTTPRequestFailedException.h
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 1967) [annotate] [blame] [check-ins using]
To Artifact [47316bed07]:
- File src/exceptions/OFHTTPRequestFailedException.h — part of check-in [16c05e87e1] at 2017-05-07 23:14:22 on branch trunk — Add OF_UNAVAILABLE (user: js, size: 2034) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
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 | @property (readonly, nonatomic) OFHTTPRequest *request; /*! * 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; /*! * @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 */ - initWithRequest: (OFHTTPRequest *)request response: (OFHTTPResponse *)response; @end OF_ASSUME_NONNULL_END | > > > > | 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 | @property (readonly, nonatomic) OFHTTPRequest *request; /*! * 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; - 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 */ - initWithRequest: (OFHTTPRequest *)request response: (OFHTTPResponse *)response; @end OF_ASSUME_NONNULL_END |