@@ -14,20 +14,19 @@ * file. */ #include "config.h" -#include - #import "OFReadOrWriteFailedException.h" #import "OFString.h" #import "OFStream.h" #ifdef OF_HAVE_SOCKETS # import "OFStreamSocket.h" #endif #import "common.h" +#import "macros.h" @implementation OFReadOrWriteFailedException + (instancetype)exceptionWithStream: (OFStream*)stream requestedLength: (size_t)requestedLength { @@ -35,18 +34,11 @@ requestedLength: requestedLength] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithStream: (OFStream*)stream requestedLength: (size_t)requestedLength {