@@ -13,16 +13,16 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" + +#include #import "OFLinkFailedException.h" #import "OFString.h" -#import "OFNotImplementedException.h" - #import "common.h" #ifndef _WIN32 @implementation OFLinkFailedException + (instancetype)exceptionWithClass: (Class)class_ @@ -34,14 +34,17 @@ destinationPath: destination] autorelease]; } - initWithClass: (Class)class_ { - Class c = [self class]; - [self release]; - @throw [OFNotImplementedException exceptionWithClass: c - selector: _cmd]; + @try { + [self doesNotRecognizeSelector: _cmd]; + abort(); + } @catch (id e) { + [self release]; + @throw e; + } } - initWithClass: (Class)class_ sourcePath: (OFString*)source destinationPath: (OFString*)destination