use of org.eclipse.rdf4j.RDF4JException in project rdf4j by eclipse.
the class HTTPRepositoryConnection method begin.
public void begin() throws RepositoryException {
verifyIsOpen();
verifyNotTxnActive("Connection already has an active transaction");
if (this.getRepository().useCompatibleMode()) {
active = true;
return;
}
try {
client.beginTransaction(this.getIsolationLevel());
active = true;
} catch (RepositoryException e) {
throw e;
} catch (RDF4JException e) {
throw new RepositoryException(e);
} catch (IllegalStateException e) {
throw new RepositoryException(e);
} catch (IOException e) {
throw new RepositoryException(e);
}
}
Aggregations