@@ -20,31 +20,31 @@ #import "OFString.h" @implementation OFOpenItemFailedException @synthesize path = _path, mode = _mode, errNo = _errNo; -+ (instancetype)exceptionWithPath: (OFString*)path ++ (instancetype)exceptionWithPath: (OFString *)path { return [[[self alloc] initWithPath: path] autorelease]; } -+ (instancetype)exceptionWithPath: (OFString*)path - mode: (OFString*)mode ++ (instancetype)exceptionWithPath: (OFString *)path + mode: (OFString *)mode { return [[[self alloc] initWithPath: path mode: mode] autorelease]; } -+ (instancetype)exceptionWithPath: (OFString*)path ++ (instancetype)exceptionWithPath: (OFString *)path errNo: (int)errNo { return [[[self alloc] initWithPath: path errNo: errNo] autorelease]; } -+ (instancetype)exceptionWithPath: (OFString*)path - mode: (OFString*)mode ++ (instancetype)exceptionWithPath: (OFString *)path + mode: (OFString *)mode errNo: (int)errNo { return [[[self alloc] initWithPath: path mode: mode errNo: errNo] autorelease]; @@ -53,11 +53,11 @@ - init { OF_INVALID_INIT_METHOD } -- initWithPath: (OFString*)path +- initWithPath: (OFString *)path { self = [super init]; @try { _path = [path copy]; @@ -67,12 +67,12 @@ } return self; } -- initWithPath: (OFString*)path - mode: (OFString*)mode +- initWithPath: (OFString *)path + mode: (OFString *)mode { self = [super init]; @try { _path = [path copy]; @@ -83,11 +83,11 @@ } return self; } -- initWithPath: (OFString*)path +- initWithPath: (OFString *)path errNo: (int)errNo { self = [super init]; @try { @@ -99,12 +99,12 @@ } return self; } -- initWithPath: (OFString*)path - mode: (OFString*)mode +- initWithPath: (OFString *)path + mode: (OFString *)mode errNo: (int)errNo { self = [super init]; @try { @@ -125,11 +125,11 @@ [_mode release]; [super dealloc]; } -- (OFString*)description +- (OFString *)description { if (_mode != nil) { if (_errNo != 0) return [OFString stringWithFormat: @"Failed to open item %@ with mode %@: %@",