Search in sources :

Example 1 with Neo4jServiceException

use of org.neo4j.android.client.Neo4jServiceException in project neo4j-mobile-android by neo4j-contrib.

the class DBManager method openOrCreateNeo4jDatabase.

@Override
public void openOrCreateNeo4jDatabase(String databaseName) throws DBInspectorException {
    try {
        doShutdownNeo4jDatabase(databaseName);
        this.database = neo4jService.openOrCreateDatabase(databaseName);
        this.databaseName = databaseName;
    } catch (Neo4jServiceException e) {
        throw new DBInspectorException(e);
    } catch (RemoteException e) {
        throw new DBInspectorException(e);
    }
}
Also used : Neo4jServiceException(org.neo4j.android.client.Neo4jServiceException) DBInspectorException(com.noser.neo4j.android.dbinspector.base.DBInspectorException) RemoteException(android.os.RemoteException)

Aggregations

RemoteException (android.os.RemoteException)1 DBInspectorException (com.noser.neo4j.android.dbinspector.base.DBInspectorException)1 Neo4jServiceException (org.neo4j.android.client.Neo4jServiceException)1