@@ -22,14 +22,13 @@ #import "OFString.h" #import "common.h" @implementation OFChangeCurrentDirectoryPathFailedException -+ (instancetype)exceptionWithDirectoryPath: (OFString*)directoryPath ++ (instancetype)exceptionWithPath: (OFString*)path { - return [[[self alloc] - initWithDirectoryPath: directoryPath] autorelease]; + return [[[self alloc] initWithPath: path] autorelease]; } - init { @try { @@ -40,16 +39,16 @@ } abort(); } -- initWithDirectoryPath: (OFString*)directoryPath +- initWithPath: (OFString*)path { self = [super init]; @try { - _directoryPath = [directoryPath copy]; + _path = [path copy]; _errNo = GET_ERRNO; } @catch (id e) { [self release]; @throw e; } @@ -57,27 +56,27 @@ return self; } - (void)dealloc { - [_directoryPath release]; + [_path release]; [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: @"Failed to change the current directory path to %@! " ERRFMT, - _directoryPath, ERRPARAM]; + _path, ERRPARAM]; } -- (OFString*)directoryPath +- (OFString*)path { - OF_GETTER(_directoryPath, false) + OF_GETTER(_path, false) } - (int)errNo { return _errNo; } @end