@@ -22,12 +22,12 @@ #import "OFHTTPResponse.h" @implementation OFHTTPRequestFailedException @synthesize request = _request, response = _response; -+ (instancetype)exceptionWithRequest: (OFHTTPRequest*)request - response: (OFHTTPResponse*)response ++ (instancetype)exceptionWithRequest: (OFHTTPRequest *)request + response: (OFHTTPResponse *)response { return [[[self alloc] initWithRequest: request response: response] autorelease]; } @@ -34,12 +34,12 @@ - init { OF_INVALID_INIT_METHOD } -- initWithRequest: (OFHTTPRequest*)request - response: (OFHTTPResponse*)response +- initWithRequest: (OFHTTPRequest *)request + response: (OFHTTPResponse *)response { self = [super init]; _request = [request retain]; _response = [response retain]; @@ -53,15 +53,15 @@ [_response release]; [super dealloc]; } -- (OFString*)description +- (OFString *)description { const char *method = of_http_request_method_to_string([_request method]); return [OFString stringWithFormat: @"An HTTP %s request with URL %@ failed with code %d!", method, [_request URL], [_response statusCode]]; } @end