Examples of ResourceNotFoundException


Examples of com.cloudesire.tisana4j.exceptions.ResourceNotFoundException

    case 400:
      return new BadRequestException(responseCode, msgError);
    case 403:
      return new AccessDeniedException(responseCode, msgError);
    case 404:
      return new ResourceNotFoundException(responseCode, msgError);
    case 422:
      return new UnprocessableEntityException(responseCode, msgError);
    case 500:
      return new InternalServerErrorException(responseCode, msgError);
    }
View Full Code Here

Examples of com.gatehill.apibms.core.exception.ResourceNotFoundException

                    return candidates.get(0);
            }
        }

        // 0 found after checking a matcher, or more than 1 found after checking all matchers
        throw new ResourceNotFoundException("Unable to find a single, distinct request definition matching incoming request for resource "
                + endpoint.getUrl());
    }
View Full Code Here

Examples of com.google.gdata.util.ResourceNotFoundException

  protected void handleErrorResponse() throws ServiceException, IOException {

    switch (httpConn.getResponseCode()) {

      case HttpURLConnection.HTTP_NOT_FOUND:
        throw new ResourceNotFoundException(httpConn);

      case HttpURLConnection.HTTP_BAD_REQUEST:
        throw new InvalidEntryException(httpConn);

      case HttpURLConnection.HTTP_FORBIDDEN:
View Full Code Here

Examples of com.radeonsys.data.querystore.support.loader.ResourceNotFoundException

   
    if (optionalResourceUrl.isPresent())
      return optionalResourceUrl.get();
   
    // if still not found, we cannot locate the resource
    throw new ResourceNotFoundException(resourceLocation, buildResourceNotFoundMessage(resourceLocation));
  }
View Full Code Here

Examples of com.ramforth.webserver.exceptions.ResourceNotFoundException

            } else {
                return resources.get(relativePath.toLowerCase());
            }
        }
        catch (NullPointerException npex) {
            throw new ResourceNotFoundException(npex);
        }
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.ResourceNotFoundException

        } catch (MalformedURLException e) {
            StringBuffer errorMessages = this.getCollatingErrorListener().getErrorBuffer();
            this.getCollatingErrorListener().resetErrorBuffer();
            Locator locator = getPipelineContext().getCurrentLocator();
            SAXParseException error =
                    new ResourceNotFoundException("Error while attempting to process: "+
                            absoluteURI + "\ndue to following errors: "+
                            errorMessages, locator, e);
            fatalError(error);
        } catch (SAXException e) {
            handleException(e,absoluteURI);
View Full Code Here

Examples of de.codecentric.moviedatabase.exception.ResourceNotFoundException

  public void addCommentToMovie(Comment comment, UUID movieId) {
    Assert.notNull(comment);
    Assert.notNull(movieId);
    Movie movie = idToMovieMap.get(movieId);
    if (movie == null){
      throw new ResourceNotFoundException("Movie not found.");
    }
    movie.getComments().add(comment);
  }
View Full Code Here

Examples of de.codecentric.moviedatabase.exception.ResourceNotFoundException

    Assert.notNull(tag);
    Assert.hasText(tag.getLabel());
    Assert.notNull(movieId);
    Movie movie = idToMovieMap.get(movieId);
    if (movie == null){
      throw new ResourceNotFoundException("Movie not found.");
    }
    movie.getTags().add(tag);
    Set<Movie> movies = tagToMoviesMap.get(tag);
    if (movies == null){
      movies = new HashSet<Movie>();
View Full Code Here

Examples of de.codecentric.moviedatabase.exception.ResourceNotFoundException

  public void removeTagFromMovie(Tag tag, UUID movieId) {
    Assert.notNull(tag);
    Assert.notNull(movieId);
    Movie movie = idToMovieMap.get(movieId);
    if (movie == null){
      throw new ResourceNotFoundException("Movie not found.");
    }
    movie.getTags().remove(tag);
    Set<Movie> movies = tagToMoviesMap.get(tag);
    if (movies != null){
      movies.remove(movie);
View Full Code Here

Examples of de.codecentric.moviedatabase.exception.ResourceNotFoundException

  @Override
  public Movie findMovieById(UUID id) {
    Assert.notNull(id);
    Movie movie = idToMovieMap.get(id);
    if (movie == null){
      throw new ResourceNotFoundException("Movie not found.");
    }
    return movie;
  }
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.