Package org.openrdf.store

Examples of org.openrdf.store.StoreException


    }
    catch (NoCompatibleMediaType e) {
      throw new UnsupportedRDFormatException(e);
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    catch (QueryResultParseException e) {
      throw new StoreException(e);
    }
    finally {
      request.release();
    }
  }
View Full Code Here


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

      else {
        final AtomicLong cardinality = new AtomicLong(0l);
        cardinalities.put(key, cardinality);

        for (final RepositoryConnection member : members) {
          final StoreException source = SailUtil.isDebugEnabled() ? new StoreException() : null;
          executor.execute(new Runnable() {

            public void run() {
              try {
                Resource[] contexts = context == null ? new Resource[0] : new Resource[] { context };
                long size = member.sizeMatch(subj, pred, obj, true, contexts);
                if (size > 0) {
                  cardinality.getAndAdd(size);
                }
              }
              catch (RuntimeException e) {
                if (source != null) {
                  source.initCause(e);
                  exception = source;
                }
                else {
                  exception = e;
                }
              }
              catch (StoreException e) {
                if (source != null) {
                  source.initCause(e);
                  exception = source;
                }
                else {
                  exception = e;
                }
View Full Code Here

      }
      catch (RuntimeException e) {
        throw e;
      }
      catch (Exception e) {
        throw new StoreException(e);
      }
    }
View Full Code Here

            col_p = i;
          else if (label.equalsIgnoreCase("O"))
            col_o = i;
      }
      } catch (Exception e) {
         throw new StoreException(e);
      }
          }
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

  public boolean isOpen() throws StoreException {
    try {
      return !this.getQuadStoreConnection().isClosed();
    }
    catch (SQLException e) {
      throw new StoreException("Problem inspecting connection", e);
    }
  }
View Full Code Here

      if (!getQuadStoreConnection().isClosed()) {
        getQuadStoreConnection().close();
      }
    }
    catch (SQLException e) {
      throw new StoreException(e);
    }
  }
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.