Package org.openrdf.repository.http.exceptions

Examples of org.openrdf.repository.http.exceptions.IllegalStatementException


    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    if (repository.isIllegal(subject, predicate, object, contexts)) {
      throw new IllegalStatementException();
    }
    add(new AddStatementOperation(subject, predicate, object, contexts));
  }
View Full Code Here


      }
    }
  }

  private IllegalStatementException illegal(Resource subj, Value obj, Resource... contexts) {
    return new IllegalStatementException("Cannot combine " + subj + " and " + obj + " in context "
        + Arrays.toString(contexts));
  }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.http.exceptions.IllegalStatementException

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.