Examples of ResourceNotFoundException


Examples of org.springframework.data.rest.webmvc.ResourceNotFoundException

  }

  private void verifyAlpsEnabled() {

    if (!configuration.metadataConfiguration().alpsEnabled()) {
      throw new ResourceNotFoundException();
    }
  }
View Full Code Here

Examples of org.springframework.social.ResourceNotFoundException

    if(errorType.equals("invalid_auth")) {
      throw new NotAuthorizedException(message);
    } else if(errorType.equals("param_error")) {
      throw new ParamErrorException(code, errorType, message);
    } else if(errorType.equals("endpoint_error")) {
      throw new ResourceNotFoundException(message);
    } else if(errorType.equals("not_authorized")) {
      throw new InsufficientPermissionException(message);
    } else if(errorType.equals("rate_limit_exceeded")) {
      throw new RateLimitExceededException();
    } else if(errorType.equals("server_error")) {
View Full Code Here

Examples of org.talend.esb.sam.service.exception.ResourceNotFoundException

        } catch (NumberFormatException ex) {
            throw new IllegalParameterException("Error during converting " + id + " parameter to Integer", ex);
        }
        FlowEvent event = provider.getEventDetails(eventId);
        if (null == event) {
            throw new ResourceNotFoundException("There no event with " + id + " ID can be found");
        }
        return Response.ok(event).build();
    }
View Full Code Here

Examples of org.tamacat.util.ResourceNotFoundException

        private JdbcConfig config;

        public ConnectionFactory(String name) {
            config = DI.configure(XML).getBean(name, JdbcConfig.class);
            if (config == null) {
              throw new ResourceNotFoundException(XML + " of key [" + name + "] is not found.");
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException

        }

        // get the source resource
        ResourceImpl sourceResource = (ResourceImpl) getMetaData(oldPath);
        if (sourceResource == null) {
            throw new ResourceNotFoundException(oldPath);
        }
        ResourceIDImpl sourceID = sourceResource.getResourceIDImpl();

        if (!(sourceResource instanceof CollectionImpl)) {
            prepareMove(oldPath, newPath);
View Full Code Here

Examples of org.xeustechnologies.jcl.exception.ResourceNotFoundException

        if (jarEntryContents.containsKey( resource )) {
            if (logger.isLoggable( Level.FINEST ))
                logger.finest( "Removing resource " + resource );
            jarEntryContents.remove( resource );
        } else {
            throw new ResourceNotFoundException( resource, "Resource not found in local ClasspathResources" );
        }
    }
View Full Code Here

Examples of sagan.support.ResourceNotFoundException

        try {
            return org.getGuideImage(guide.getRepoName(), imageName);
        } catch (RestClientException ex) {
            String msg = String.format("Could not load image '%s' for repo '%s'", imageName, guide.getRepoName());
            log.warn(msg, ex);
            throw new ResourceNotFoundException(msg, ex);
        }
    }
View Full Code Here

Examples of webit.script.exceptions.ResourceNotFoundException

    public Reader openReader() throws IOException {
        final InputStream in = servletContext.getResourceAsStream(path);
        if (in != null) {
            return new InputStreamReader(in, encoding);
        }
        throw new ResourceNotFoundException("Resource Not Found: ".concat(path));
    }
View Full Code Here

Examples of xeus.jcl.exception.ResourceNotFoundException

        if( jarEntryContents.containsKey( resource ) ) {
            if( logger.isTraceEnabled() )
                logger.trace( "Removing resource " + resource );
            jarEntryContents.remove( resource );
        } else {
            throw new ResourceNotFoundException( resource, "Resource not found in local ClasspathResources" );
        }
    }
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.