mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
DB interface cleanup, removed unnecessary exceptions.
This commit is contained in:
@@ -55,14 +55,11 @@ public interface DatabaseComponent {
|
||||
void addLocalMessage(Message m, ClientId c, Metadata meta, boolean shared)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Stores a transport and returns true if the transport was not previously
|
||||
* in the database.
|
||||
*/
|
||||
boolean addTransport(TransportId t, int maxLatency) throws DbException;
|
||||
/** Stores a transport. */
|
||||
void addTransport(TransportId t, int maxLatency) throws DbException;
|
||||
|
||||
/**
|
||||
* Stores the given transport keys for a newly added contact.
|
||||
* Stores transport keys for a newly added contact.
|
||||
*/
|
||||
void addTransportKeys(ContactId c, TransportKeys k) throws DbException;
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a duplicate pseudonym is added to the database. This exception
|
||||
* may occur due to concurrent updates and does not indicate a database error.
|
||||
*/
|
||||
public class LocalAuthorExistsException extends DbException {
|
||||
|
||||
private static final long serialVersionUID = -1483877298070151673L;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a duplicate message is added to the database. This exception may
|
||||
* occur due to concurrent updates and does not indicate a database error.
|
||||
*/
|
||||
public class MessageExistsException extends DbException {
|
||||
}
|
||||
Reference in New Issue
Block a user