Package org.openrdf.repository

Examples of org.openrdf.repository.RepositoryException


    try {
      sailConnection.removeNamespace(prefix);
      autoCommit();
    }
    catch (SailException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here


    try {
      sailConnection.clearNamespaces();
      autoCommit();
    }
    catch (SailException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

  {
    try {
      return createRepositoryResult(sailConnection.getNamespaces());
    }
    catch (SailException e) {
      throw new RepositoryException("Unable to get namespaces from Sail", e);
    }
  }
View Full Code Here

  {
    try {
      return sailConnection.getNamespace(prefix);
    }
    catch (SailException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

      repInfo.setDescription(config.getTitle());
      try {
        repInfo.setLocation(getRepositoryDir(id).toURI().toURL());
      }
      catch (MalformedURLException mue) {
        throw new RepositoryException("Location of repository does not resolve to a valid URL", mue);
      }

      repInfo.setReadable(true);
      repInfo.setWritable(true);

      return repInfo;
    }
    catch (RepositoryConfigException rce) {
      // FIXME: don't fetch info through config parsing
      throw new RepositoryException("Unable to retrieve existing configurations", rce);
    }
  }
View Full Code Here

        result.add(repInfo);
      }
    }
    catch (IOException ioe) {
      logger.warn("Unable to retrieve list of repositories", ioe);
      throw new RepositoryException(ioe);
    }
    catch (QueryEvaluationException qee) {
      logger.warn("Unable to retrieve list of repositories", qee);
      throw new RepositoryException(qee);
    }
    catch (UnauthorizedException ue) {
      logger.warn("Not authorized to retrieve list of repositories", ue);
      throw new RepositoryException(ue);
    }
    catch (RepositoryException re) {
      logger.warn("Unable to retrieve list of repositories", re);
      throw re;
    }
View Full Code Here

        con.commit();
      }
    }
    catch (RepositoryConfigException e) {
      throw new RepositoryException(e.getMessage(), e);
    }
    finally {
      con.close();
    }
  }
View Full Code Here

  @Override
  protected RepositoryException convert(Exception e)
  {
    if (e instanceof SailException) {
      return new RepositoryException(e);
    }
    else if (e instanceof RuntimeException) {
      throw (RuntimeException)e;
    }
    else if (e == null) {
View Full Code Here

  {
    try {
      sail.initialize();
    }
    catch (SailException e) {
      throw new RepositoryException(e.getMessage(), e);
    }
  }
View Full Code Here

  {
    try {
      sail.shutDown();
    }
    catch (SailException e) {
      throw new RepositoryException("Unable to shutdown Sail", e);
    }
  }
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.