Package org.openrdf.store

Examples of org.openrdf.store.StoreException


    }
    catch (UnsupportedMediaType e) {
      throw new UnsupportedRDFormatException(e);
    }
    catch (Unauthorized e) {
      throw new StoreException(e);
    }
    catch (HTTPException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here


      request.acceptTupleQueryResult();
      execute(request);
      return request.getTupleQueryResult();
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

      finally {
        result.close();
      }
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

    }
    catch (Unauthorized e) {
      throw new UnauthorizedException(e);
    }
    catch (HTTPException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

  {
    BNode bnode;
    TupleResult result = client.post(amount *= 2);
    try {
      if (!result.hasNext()) {
        throw new StoreException("No BNodes");
      }
      bnode = (BNode)result.next().getValue(BNODE);
      while (result.hasNext()) {
        queue.add((BNode)result.next().getValue(BNODE));
      }
View Full Code Here

   */
  protected void verifyIsOpen()
    throws StoreException
  {
    if (!isOpen()) {
      throw new StoreException("Connection has been closed");
    }
  }
View Full Code Here

   */
  protected void verifyNotReadOnly()
    throws StoreException
  {
    if (isReadOnly()) {
      throw new StoreException("Connection is in read-only mode");
    }
  }
View Full Code Here

   */
  protected void verifyTxnActive()
    throws StoreException
  {
    if (isAutoCommit()) {
      throw new StoreException("Connection does not have an active transaction");
    }
  }
View Full Code Here

   */
  protected void verifyNotTxnActive(String msg)
    throws StoreException
  {
    if (!isAutoCommit()) {
      throw new StoreException(msg);
    }
  }
View Full Code Here

      return new HTTPBooleanQuery(qry, (BooleanQueryClient)query);
    }
    if (query instanceof TupleQueryClient) {
      return new HTTPTupleQuery(qry, (TupleQueryClient)query);
    }
    throw new StoreException("Unsupported query type: " + query);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.store.StoreException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.