Package org.openrdf.repository

Examples of org.openrdf.repository.RepositoryException


  {
    try {
      return sail.isWritable();
    }
    catch (SailException e) {
      throw new RepositoryException("Unable to determine writable status of Sail", e);
    }
  }
View Full Code Here


  {
    try {
      return new SailRepositoryConnection(this, sail.getConnection());
    }
    catch (SailException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

      if (since == null || since < urlCon.getLastModified()) {
        load(url, urlCon, context);
      }
    }
    catch (RDFParseException e) {
      throw new RepositoryException(e);
    }
    catch (IOException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

      Resource repositoryNode = idStatement.getSubject();
      Resource context = idStatement.getContext();

      if (context == null) {
        throw new RepositoryException("No configuration context for repository " + repositoryID);
      }

      Graph contextGraph = new GraphImpl();
      con.getStatements(null, null, null, true, context).addTo(contextGraph);
View Full Code Here

      catch (MalformedQueryException e) {
        writeError("Internal error: malformed preconfigured query");
        logger.error("Malformed preconfigured query", e);
      }
      catch (QueryEvaluationException e) {
        throw new RepositoryException(e);
      }
      finally {
        con.close();
      }
    }
View Full Code Here

      catch (MalformedQueryException e) {
        writeError("Internal error: malformed preconfigured query");
        logger.error("Failed to show repository", e);
      }
      catch (QueryEvaluationException e) {
        throw new RepositoryException(e);
      }
      finally {
        con.close();
      }
    }
View Full Code Here

      else if (httpCode == HttpURLConnection.HTTP_UNAUTHORIZED) {
        throw new UnauthorizedException();
      }
      else {
        ErrorInfo errInfo = getErrorInfo(method);
        throw new RepositoryException("Failed to get server protocol: " + errInfo);
      }
    }
    finally {
      method.releaseConnection();
    }
View Full Code Here

      getTupleQueryResult(method, handler);
    }
    catch (MalformedQueryException e) {
      // This shouldn't happen as no queries are involved
      logger.warn("Server reported unexpected malfored query error", e);
      throw new RepositoryException(e.getMessage(), e);
    }
    finally {
      releaseConnection(method);
    }
  }
View Full Code Here

    try {
      getRDF(method, handler, true);
    }
    catch (MalformedQueryException e) {
      logger.warn("Server reported unexpected malfored query error", e);
      throw new RepositoryException(e.getMessage(), e);
    }
    finally {
      releaseConnection(method);
    }
  }
View Full Code Here

      if (httpCode == HttpURLConnection.HTTP_UNAUTHORIZED) {
        throw new UnauthorizedException();
      }
      else if (!HttpClientUtil.is2xx(httpCode)) {
        ErrorInfo errInfo = getErrorInfo(method);
        throw new RepositoryException("Transaction failed: " + errInfo + " (" + httpCode + ")");
      }
    }
    finally {
      releaseConnection(method);
    }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.RepositoryException

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.