Replaced assertions with exceptions in database code, and changed

exception handling so that database connections aren't closed with
transactions in progress - this should make it possible to close the
database cleanly if an exception occurs.
This commit is contained in:
akwizgran
2011-08-03 18:23:47 +01:00
parent 7752690b29
commit 5fd87647f8
2 changed files with 181 additions and 254 deletions

View File

@@ -0,0 +1,9 @@
package net.sf.briar.db;
import java.sql.SQLException;
/** Thrown when the database is in an illegal state. */
class DbStateException extends SQLException {
private static final long serialVersionUID = 10793396057218891L;
}

File diff suppressed because it is too large Load Diff