@@ -15,27 +15,27 @@ #include "config.h" #import "OFSetItemAttributesFailedException.h" #import "OFString.h" -#import "OFURL.h" +#import "OFURI.h" @implementation OFSetItemAttributesFailedException -@synthesize URL = _URL, attributes = _attributes; +@synthesize URI = _URI, attributes = _attributes; @synthesize failedAttribute = _failedAttribute, errNo = _errNo; + (instancetype)exception { OF_UNRECOGNIZED_SELECTOR } -+ (instancetype)exceptionWithURL: (OFURL *)URL ++ (instancetype)exceptionWithURI: (OFURI *)URI attributes: (OFFileAttributes)attributes failedAttribute: (OFFileAttributeKey)failedAttribute errNo: (int)errNo { - return [[[self alloc] initWithURL: URL + return [[[self alloc] initWithURI: URI attributes: attributes failedAttribute: failedAttribute errNo: errNo] autorelease]; } @@ -42,19 +42,19 @@ - (instancetype)init { OF_INVALID_INIT_METHOD } -- (instancetype)initWithURL: (OFURL *)URL +- (instancetype)initWithURI: (OFURI *)URI attributes: (OFFileAttributes)attributes failedAttribute: (OFFileAttributeKey)failedAttribute errNo: (int)errNo { self = [super init]; @try { - _URL = [URL copy]; + _URI = [URI copy]; _attributes = [attributes copy]; _failedAttribute = [failedAttribute copy]; _errNo = errNo; } @catch (id e) { [self release]; @@ -64,11 +64,11 @@ return self; } - (void)dealloc { - [_URL release]; + [_URI release]; [_attributes release]; [_failedAttribute release]; [super dealloc]; } @@ -75,8 +75,8 @@ - (OFString *)description { return [OFString stringWithFormat: @"Failed to set attribute %@ for item %@: %@", - _failedAttribute, _URL, OFStrError(_errNo)]; + _failedAttribute, _URI, OFStrError(_errNo)]; } @end