@@ -20,10 +20,12 @@ #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]; @@ -60,16 +62,6 @@ return [OFString stringWithFormat: @"An HTTP %s request with URL %@ failed with code %d!", method, [_request URL], [_response statusCode]]; } - -- (OFHTTPRequest*)request -{ - OF_GETTER(_request, true) -} - -- (OFHTTPResponse*)response -{ - OF_GETTER(_response, true) -} @end