@@ -14,18 +14,17 @@ * file. */ #include "config.h" -#include - #import "OFHTTPRequestFailedException.h" #import "OFString.h" #import "OFHTTPRequest.h" #import "OFHTTPResponse.h" #import "common.h" +#import "macros.h" @implementation OFHTTPRequestFailedException + (instancetype)exceptionWithRequest: (OFHTTPRequest*)request response: (OFHTTPResponse*)response { @@ -33,18 +32,11 @@ response: response] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithRequest: (OFHTTPRequest*)request response: (OFHTTPResponse*)response {