Examples of NotFoundException


Examples of org.apache.marmotta.client.exception.NotFoundException

                case 200:
                    log.debug("configuration {} updated successfully",key);
                    break;
                case 404:
                    log.error("configuration with key {} does not exist",key);
                    throw new NotFoundException("configuration with key "+key+" does not exist");
                default:
                    log.error("error updating configuration {}: {} {}",new Object[] {key,response.getStatusLine().getStatusCode(),response.getStatusLine().getReasonPhrase()});
                    throw new MarmottaClientException("error updating configuration "+key+": "+response.getStatusLine().getStatusCode() + " " + response.getStatusLine().getReasonPhrase());
            }
View Full Code Here

Examples of org.apache.oodt.cas.product.jaxrs.exceptions.NotFoundException

    catch (URISyntaxException e)
    {
      String message =
        "Problem with the data store URI for the reference source file(s).";
      LOGGER.log(Level.FINE, message, e);
      throw new NotFoundException(message + " " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.syncope.core.persistence.dao.NotFoundException

    public ResourceTO update(@RequestBody final ResourceTO resourceTO) {
        LOG.debug("Role update request: {}", resourceTO);

        ExternalResource resource = resourceDAO.find(resourceTO.getName());
        if (resource == null) {
            throw new NotFoundException("Resource '" + resourceTO.getName() + "'");
        }

        resource = binder.update(resource, resourceTO);
        resource = resourceDAO.save(resource);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.atom.collection.NotFoundException

            entry.setUpdated(now);
            lastModified = now;
            entries.put(id, entry);
        }
        else {
            throw new NotFoundException();
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.feed.collection.NotFoundException

                    Entry feedEntry =
                        AtomFeedEntryUtil.readFeedEntry("atom_1.0", new InputStreamReader(getMethod.getResponseBodyAsStream()));
                    msg.setBody(feedEntry);

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

Examples of org.apache.tuscany.sca.binding.rss.collection.NotFoundException

     * {@inheritDoc}
     */
    public SyndEntry get(String id) throws NotFoundException {
        final SyndEntry entry = entries.get(id);
        if (id == null) {
            throw new NotFoundException("No entry found with ID " + id);
        }

        return entry;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.data.collection.NotFoundException

    }

    public Headline get(String key) throws NotFoundException {
        Headline item = headlines.get(key);
        if (item == null) {
            throw new NotFoundException(key);
        } else {
            return item;
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.data.collection.NotFoundException

        for (Contribution contribution: workspace.getContributions()) {
            if (key.equals(contribution.getURI())) {
                return item(workspace, contribution);
            }
        }
        throw new NotFoundException(key);
    }
View Full Code Here

Examples of org.camunda.bpm.engine.exception.NotFoundException

    } catch (NullValueException e) {
      throw new NotValidException(e.getMessage(), e);

    } catch (CaseExecutionNotFoundException e) {
      throw new NotFoundException(e.getMessage(), e);
    } catch (CaseDefinitionNotFoundException e) {
      throw new NotFoundException(e.getMessage(), e);
    } catch (CaseIllegalStateTransitionException e) {
      throw new NotAllowedException(e.getMessage(), e);

    }
View Full Code Here

Examples of org.candlepin.common.exceptions.NotFoundException

    @Produces(MediaType.APPLICATION_JSON)
    public Environment getEnv(
        @PathParam("env_id") @Verify(Environment.class) String envId) {
        Environment e = envCurator.find(envId);
        if (e == null) {
            throw new NotFoundException(i18n.tr("No such environment: {0}", envId));
        }
        return e;
    }
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.