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