@@ -14,33 +14,25 @@ * file. */ #include "config.h" -#include - #import "OFChangeCurrentDirectoryPathFailedException.h" #import "OFString.h" #import "common.h" +#import "macros.h" @implementation OFChangeCurrentDirectoryPathFailedException + (instancetype)exceptionWithPath: (OFString*)path { return [[[self alloc] initWithPath: path] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithPath: (OFString*)path { self = [super init];