Examples of ProviderMismatchException


Examples of java.nio.file.ProviderMismatchException

  private static JimfsPath checkPath(Path path) {
    if (path instanceof JimfsPath) {
      return (JimfsPath) path;
    }
    throw new ProviderMismatchException(
        "path " + path + " is not associated with a Jimfs file system");
  }
View Full Code Here

Examples of java.nio.file.ProviderMismatchException

  @Override
  public JimfsPath resolve(Path other) {
    JimfsPath otherPath = checkPath(other);
    if (otherPath == null) {
      throw new ProviderMismatchException(other.toString());
    }

    if (isEmptyPath() || otherPath.isAbsolute()) {
      return otherPath;
    }
View Full Code Here

Examples of java.nio.file.ProviderMismatchException

  @Override
  public JimfsPath resolveSibling(Path other) {
    JimfsPath otherPath = checkPath(other);
    if (otherPath == null) {
      throw new ProviderMismatchException(other.toString());
    }

    if (otherPath.isAbsolute()) {
      return otherPath;
    }
View Full Code Here

Examples of java.nio.file.ProviderMismatchException

  @Override
  public JimfsPath relativize(Path other) {
    JimfsPath otherPath = checkPath(other);
    if (otherPath == null) {
      throw new ProviderMismatchException(other.toString());
    }

    checkArgument(Objects.equal(root, otherPath.root),
        "Paths have different roots: %s, %s", this, other);
View Full Code Here

Examples of java.nio.file.ProviderMismatchException

  private static JimfsPath checkPath(Path path) {
    if (path instanceof JimfsPath) {
      return (JimfsPath) path;
    }
    throw new ProviderMismatchException(
        "path " + path + " is not associated with a Jimfs file system");
  }
View Full Code Here

Examples of org.agorava.api.exception.ProviderMismatchException

         * @throws ProviderMismatchException if parameter is null or if no provider exists for this name
         */
        public Builder providerName(String providerName) throws ProviderMismatchException {
            qualifier = AgoravaContext.getServicesToQualifier().get(providerName);
            if (qualifier == null)
                throw new ProviderMismatchException("No provider found with name : " + providerName);
            return this;
        }
View Full Code Here

Examples of org.agorava.api.exception.ProviderMismatchException

        public Builder qualifier(Annotation qualifier) throws ProviderMismatchException {
            this.qualifier = qualifier;
            if (qualifier != null && AgoravaContext.getQualifierToService().containsKey(qualifier))
                return this;
            else
                throw new ProviderMismatchException("No provider found for qualifier : " + qualifier);
        }
View Full Code Here

Examples of org.agorava.api.exception.ProviderMismatchException

            return current;
        }
        if (getCurrentRepository().getCurrent().equals(OAuthSession.NULL)) {
            buildSessionFor(qualifier);
        } else if (!getCurrentRepository().getCurrent().getServiceQualifier().equals(qualifier)) {
            throw new ProviderMismatchException("Inconsistent state between repo and service. In repo Session provider is " +
                    getCurrentRepository().getCurrent().getServiceName() + " while service provider is " + qualifier);
        }

        return getCurrentRepository().getCurrent();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.