@@ -22,13 +22,13 @@ #import "OFString.h" #import "common.h" @implementation OFRemoveItemFailedException -+ (instancetype)exceptionWithItemPath: (OFString*)itemPath ++ (instancetype)exceptionWithPath: (OFString*)path { - return [[[self alloc] initWithItemPath: itemPath] autorelease]; + return [[[self alloc] initWithPath: path] autorelease]; } - init { @try { @@ -39,16 +39,16 @@ } abort(); } -- initWithItemPath: (OFString*)itemPath +- initWithPath: (OFString*)path { self = [super init]; @try { - _itemPath = [itemPath copy]; + _path = [path copy]; _errNo = GET_ERRNO; } @catch (id e) { [self release]; @throw e; } @@ -56,26 +56,26 @@ return self; } - (void)dealloc { - [_itemPath release]; + [_path release]; [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: - @"Failed to remove item at path %@! " ERRFMT, _itemPath, ERRPARAM]; + @"Failed to remove item at path %@! " ERRFMT, _path, ERRPARAM]; } -- (OFString*)itemPath +- (OFString*)path { - OF_GETTER(_itemPath, false) + OF_GETTER(_path, false) } - (int)errNo { return _errNo; } @end