mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-23 08:09:54 +01:00
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:
9
components/net/sf/briar/db/DbStateException.java
Normal file
9
components/net/sf/briar/db/DbStateException.java
Normal 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
Reference in New Issue
Block a user