Examples of LocationException


Examples of org.jboss.arquillian.graphene.location.exception.LocationException

        URI uri = null;

        try {
            uri = new URI(location);
        } catch (URISyntaxException ex) {
            throw new LocationException(String.format("Unable to convert '%s' to URI", location), ex.getCause());
        }

        String resourceName = uri.getSchemeSpecificPart();

        if (resourceName.startsWith("//")) {
View Full Code Here

Examples of org.jboss.arquillian.graphene.location.exception.LocationException

            if (!file.exists()) {
                throw new IllegalArgumentException(String.format("File specified by %s was not found", location));
            }
            return fileToUrl(file).toExternalForm();
        } catch (URISyntaxException ex) {
            throw new LocationException(String.format("Unable to convert '%s' to URI", location), ex.getCause());
        }

    }
View Full Code Here

Examples of q_impress.pmi.lib.project.LocationException

  @Override
  public String getLayoutLocation(String absoluteLocation) throws LocationException {
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    if (absoluteLocation.startsWith(root.getLocation().toPortableString())) {
      return absoluteLocation.substring(absoluteLocation.length());
    } else throw new LocationException("Invalid absolute location : \"" + absoluteLocation + "\" .");
  }
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.