@@ -20,11 +20,11 @@ * POSSIBILITY OF SUCH DAMAGE. */ #import "SL3Connection.h" -#import "SL3Exception.h" +#import "SL3OpenFailedException.h" @implementation SL3Connection + (instancetype)connectionWithPath: (OFString *)path flags: (int)flags { @@ -40,14 +40,14 @@ @try { int errorCode = sqlite3_open_v2(path.UTF8String, &_database, flags, NULL); if (errorCode != SQLITE_OK) - /* TODO: Use an SL3Exception subclass. */ - @throw [SL3Exception - exceptionWithConnection: nil - errorCode: errorCode]; + @throw [SL3OpenFailedException + exceptionWithPath: path + flags: flags + errorCode: errorCode]; } @catch (id e) { [self release]; @throw e; }