Examples of ResourceNotFoundException


Examples of org.eclipse.maven.core.exception.ResourceNotFoundException

  }

  public static String resolveMavenHome() throws ResourceNotFoundException {
    String m2 = resolveResourcePath(PreferencesConstants.MAVEN_HOME);
    if (m2 == null || m2.isEmpty())
      throw new ResourceNotFoundException(
          "You must define the path to maven home.");
    return m2;
  }
View Full Code Here

Examples of org.gatein.management.api.exceptions.ResourceNotFoundException

        } else {
            PageKey key = new PageKey(siteKey, pageName);
            try {
                Page page = PageUtils.getPage(dataStorage, pageService, key);
                if (page == null) {
                    throw new ResourceNotFoundException("No page found for " + key);
                } else {
                    resultHandler.completed(page);
                }
            } catch (ResourceNotFoundException e) {
                throw e;
View Full Code Here

Examples of org.gradle.internal.resource.ResourceNotFoundException

        for (VersionLister lister : versionListers) {
            visitors.add(lister.newVisitor(module, dest, result));
        }
        return new VersionPatternVisitor() {
            public void visit(ResourcePattern pattern, IvyArtifactName artifact) throws ResourceException {
                ResourceNotFoundException failure = null;
                for (VersionPatternVisitor list : visitors) {
                    try {
                        list.visit(pattern, artifact);
                        return;
                    } catch (ResourceNotFoundException e) {
View Full Code Here

Examples of org.jclouds.rest.ResourceNotFoundException

         case 403:
            exception = new AuthorizationException(message, exception);
            break;
         case 404:
            if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
               exception = new ResourceNotFoundException(message, exception);
            }
            break;
      }
      command.setException(exception);
   }
View Full Code Here

Examples of org.jclouds.rest.ResourceNotFoundException

         case 403:
            exception = new AuthorizationException(message, exception);
            break;
         case 404:
            if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
               exception = new ResourceNotFoundException(message, exception);
            }
            break;
         case 409:
            exception = new IllegalStateException(message, exception);
            break;
View Full Code Here

Examples of org.jclouds.rest.ResourceNotFoundException

               response.getStatusLine());
         switch (response.getStatusCode()) {
            case 400:
               if ((command.getCurrentRequest().getEndpoint().getPath().endsWith("/info"))
                     || (message != null && message.indexOf("could not be found") != -1))
                  exception = new ResourceNotFoundException(message, exception);
               else if (message != null && message.indexOf("currently in use") != -1)
                  exception = new IllegalStateException(message, exception);
               else
                  exception = new IllegalArgumentException(message, exception);
               break;
            case 401:
               exception = new AuthorizationException(message, exception);
               break;
            case 402:
               exception = new IllegalStateException(message, exception);
               break;
            case 404:
               if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
                  exception = new ResourceNotFoundException(message, exception);
               }
               break;
            case 405:
               exception = new IllegalArgumentException(message, exception);
               break;
View Full Code Here

Examples of org.jclouds.rest.ResourceNotFoundException

         case 401:
            exception = new AuthorizationException(message, exception);
            break;
         case 404:
            if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
               exception = new ResourceNotFoundException(message, exception);
            }
            break;
         default:
            exception = new HttpResponseException(command, response, message);
            break;
View Full Code Here

Examples of org.ontospread.exceptions.ResourceNotFoundException

            Document document = DocumentBuilderHelper.getDocumentFromInputStream(in);
            logger.debug("Finished parsing of resource filename: " + filename);
            in.close();
            return document;
        } catch (FileNotFoundException e) {
            throw new ResourceNotFoundException(e.getMessage()); // propagate
        } catch (Exception e) {
            throw new OntoSpreadModelException(e, "OntoSpread files resource loaded: parsing Resource file " + filename);
        }
    }
View Full Code Here

Examples of org.openbravo.service.web.ResourceNotFoundException

            final String insertFlag = request.getParameter("insertFlag");

            try {
                ModelProvider.getInstance().getEntity(entityName);
            } catch (final CheckException ce) {
                throw new ResourceNotFoundException("Resource " + entityName
                        + " not found", ce);
            }

            // Where clause
            final String where = request.getParameter("where");
View Full Code Here

Examples of org.rhq.enterprise.server.resource.ResourceNotFoundException

    // local only
    @Override
    public void setResourceConfiguration(int resourceId, Configuration configuration) {
        Resource resource = entityManager.find(Resource.class, resourceId);
        if (resource == null) {
            throw new ResourceNotFoundException("Resource [" + resourceId + "] does not exist.");
        }
        resource.setResourceConfiguration(configuration);
        entityManager.merge(resource);
    }
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.