@@ -14,37 +14,37 @@ */ #include "config.h" #import "OFCreateDirectoryFailedException.h" +#import "OFIRI.h" #import "OFString.h" -#import "OFURI.h" @implementation OFCreateDirectoryFailedException -@synthesize URI = _URI, errNo = _errNo; +@synthesize IRI = _IRI, errNo = _errNo; + (instancetype)exception { OF_UNRECOGNIZED_SELECTOR } -+ (instancetype)exceptionWithURI: (OFURI *)URI errNo: (int)errNo ++ (instancetype)exceptionWithIRI: (OFIRI *)IRI errNo: (int)errNo { - return [[[self alloc] initWithURI: URI errNo: errNo] autorelease]; + return [[[self alloc] initWithIRI: IRI errNo: errNo] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } -- (instancetype)initWithURI: (OFURI *)URI errNo: (int)errNo +- (instancetype)initWithIRI: (OFIRI *)IRI errNo: (int)errNo { self = [super init]; @try { - _URI = [URI copy]; + _IRI = [IRI copy]; _errNo = errNo; } @catch (id e) { [self release]; @throw e; } @@ -52,16 +52,16 @@ return self; } - (void)dealloc { - [_URI release]; + [_IRI release]; [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: - @"Failed to create directory %@: %@", _URI, OFStrError(_errNo)]; + @"Failed to create directory %@: %@", _IRI, OFStrError(_errNo)]; } @end