@@ -14,16 +14,15 @@ * file. */ #include "config.h" -#include - #import "OFChangePermissionsFailedException.h" #import "OFString.h" #import "common.h" +#import "macros.h" @implementation OFChangePermissionsFailedException + (instancetype)exceptionWithPath: (OFString*)path permissions: (mode_t)permissions { @@ -31,18 +30,11 @@ permissions: permissions] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithPath: (OFString*)path permissions: (mode_t)permissions {