Search in sources :

Example 16 with RDF4JException

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);
    }
}
Also used : RDF4JException(org.eclipse.rdf4j.RDF4JException) RepositoryException(org.eclipse.rdf4j.repository.RepositoryException) IOException(java.io.IOException)

Aggregations

RDF4JException (org.eclipse.rdf4j.RDF4JException)16 RepositoryException (org.eclipse.rdf4j.repository.RepositoryException)13 IOException (java.io.IOException)4 HttpGet (org.apache.http.client.methods.HttpGet)3 HttpPut (org.apache.http.client.methods.HttpPut)3 URISyntaxException (java.net.URISyntaxException)2 HttpDelete (org.apache.http.client.methods.HttpDelete)2 HttpPost (org.apache.http.client.methods.HttpPost)2 URIBuilder (org.apache.http.client.utils.URIBuilder)2 MalformedQueryException (org.eclipse.rdf4j.query.MalformedQueryException)2 QueryInterruptedException (org.eclipse.rdf4j.query.QueryInterruptedException)2 RDFHandlerException (org.eclipse.rdf4j.rio.RDFHandlerException)2 BasicDBObject (com.mongodb.BasicDBObject)1 DBCursor (com.mongodb.DBCursor)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 InputStream (java.io.InputStream)1 OutputStream (java.io.OutputStream)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1