@@ -21,14 +21,14 @@ */ #import "SL3OpenFailedException.h" @implementation SL3OpenFailedException -@synthesize path = _Path, flags = _flags; +@synthesize path = _path, flags = _flags; + (instancetype)exceptionWithConnection: (SL3Connection *)connection - errorCode: (int)errorCode OF_UNAVAILABLE + errorCode: (int)errorCode { OF_UNRECOGNIZED_SELECTOR } + (instancetype)exceptionWithPath: (OFString *)path @@ -39,11 +39,11 @@ flags: flags errorCode: errorCode] autorelease]; } - (instancetype)initWithConnection: (SL3Connection *)connection - errorCode: (int)errorCode OF_UNAVAILABLE + errorCode: (int)errorCode { OF_INVALID_INIT_METHOD } - (instancetype)initWithPath: (OFString *)path @@ -61,6 +61,13 @@ @throw e; } return self; } + +- (void)dealloc +{ + [_path release]; + + [super dealloc]; +} @end