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