Package org.openrdf.result

Examples of org.openrdf.result.NoResultException


  public BindingSet singleResult()
    throws StoreException
  {
    if (bindingSets.isEmpty()) {
      throw new NoResultException("expected zero, but was:" + bindingSets.size());
    }
    if (bindingSets.size() > 1) {
      throw new MultipleResultException("expected zero, but was:" + bindingSets.size());
    }
    return this.bindingSets.get(0);
View Full Code Here


    throws StoreException
  {
    try {
      T next = next();
      if (next == null) {
        throw new NoResultException("No result");
      }
      if (next() != null) {
        throw new MultipleResultException("More than one result");
      }
      return next;
View Full Code Here

TOP

Related Classes of org.openrdf.result.NoResultException

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.