@@ -18,10 +18,12 @@ #import "OFChangeCurrentDirectoryPathFailedException.h" #import "OFString.h" @implementation OFChangeCurrentDirectoryPathFailedException +@synthesize path = _path, errNo = _errNo; + + (instancetype)exceptionWithPath: (OFString*)path errNo: (int)errNo { return [[[self alloc] initWithPath: path errNo: errNo] autorelease]; @@ -59,16 +61,6 @@ { return [OFString stringWithFormat: @"Failed to change the current directory path to %@: %@", _path, of_strerror(_errNo)]; } - -- (OFString*)path -{ - OF_GETTER(_path, true) -} - -- (int)errNo -{ - return _errNo; -} @end