Examples of NotFoundException


Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.exception.NotFoundException

        throws NotFoundException
    {
        ParentBean result = (ParentBean) m_map.get(id);
        if (result == null)
        {
            throw new NotFoundException(id);
        }

        return result;
    }
View Full Code Here

Examples of org.cruxframework.crux.core.server.rest.spi.NotFoundException

      logger.debug("PathInfo: " + request.getUri().getPath());
    }
    ResourceMethod invoker = ResourceRegistry.getInstance().getResourceMethod(request);
    if (ensureExists && invoker == null)
    {
      throw new NotFoundException("Unable to find resource associated with path: " + request.getUri().getPath());
    }
    return invoker;
  }
View Full Code Here

Examples of org.ejbca.core.model.ra.NotFoundException

      final Admin admin = ejbhelper.getAdmin();       
            logAdminName(admin,logger);
      // check authorization to CAID
      final UserDataVO userdata = userAdminSession.findUser(admin, username);
      if (userdata == null) {
        throw new NotFoundException(intres.getLocalizedMessage("ra.errorentitynotexist", username));
      }
      final int caid = userdata.getCAId();
      caAdminSession.verifyExistenceOfCA(caid);
      if (!authorizationSession.isAuthorizedNoLog(admin, AccessRulesConstants.CAPREFIX +caid)) {
          Authorizer.throwAuthorizationException(admin, AccessRulesConstants.CAPREFIX +caid, null);
View Full Code Here

Examples of org.exist.http.NotFoundException

          } else {
            response.setStatusCode(204);
          }

        } else {
          throw new NotFoundException("Resource " + request.getPath()
              + " not found");
        }

      } else {
        // Do we have permission to read the resource
View Full Code Here

Examples of org.exoplatform.social.client.api.auth.NotFoundException

  public static void handleError(HttpResponse response) throws SocialClientLibException {
    int statusCode = response.getStatusLine().getStatusCode();

    if (statusCode != 200) {
      if(statusCode == 404){
        throw new SocialClientLibException(response.getStatusLine().toString(), new NotFoundException());
      } else if(statusCode == 403){
        throw new SocialClientLibException(response.getStatusLine().toString(), new AccessDeniedException());
      } else if(statusCode == 401){
        throw new SocialClientLibException(response.getStatusLine().toString(), new UnAuthenticatedException());
      } else {
View Full Code Here

Examples of org.glite.authz.pap.repository.exceptions.NotFoundException

            if (!policyFile.delete()) {
                throw new RepositoryException("Cannot delete file: " + policyFile.getAbsolutePath());
            }

        } else {
            throw new NotFoundException(policyNotFoundExceptionMsg(policyId));
        }
    }
View Full Code Here

Examples of org.graphity.processor.exception.NotFoundException

  super(uriInfo, endpoint);

        if (ontClass == null)
        {
            if (log.isDebugEnabled()) log.debug("Resource {} has not matched any template OntClass, returning 404 Not Found", getURI());
            throw new NotFoundException("Resource has not matched any template");
        }
       
  if (uriInfo == null) throw new IllegalArgumentException("UriInfo cannot be null");
        if (httpHeaders == null) throw new IllegalArgumentException("HttpHeaders cannot be null");
  if (resourceContext == null) throw new IllegalArgumentException("ResourceContext cannot be null");
View Full Code Here

Examples of org.graylog2.database.NotFoundException

    @Override
    public Dashboard load(String id) throws NotFoundException {
        BasicDBObject o = (BasicDBObject) get(DashboardImpl.class, id);

        if (o == null) {
            throw new NotFoundException();
        }

        return new DashboardImpl((ObjectId) o.get("_id"), o.toMap());
    }
View Full Code Here

Examples of org.hotswap.agent.javassist.NotFoundException

     * Always throws a <code>NotFoundException</code>.
     *
     * @see #getConstructor()
     */
    public CtMethod getMethod() throws NotFoundException {
        throw new NotFoundException("this is a constructor call.  Call getConstructor().");
    }
View Full Code Here

Examples of org.ice.exception.NotFoundException

  public void dispatch(String task) throws Exception {
    Method method = null;
    try {
      method = this.getClass().getMethod(task+"Task", new Class<?>[0]);
    } catch (Exception ex)  {
      throw new NotFoundException("Task ["+request.getTaskName()+"] not found for module ["+request.getModuleName()+"]");
    }
    this.preDispatch (method);

    try {
      method.invoke(this, new Object[0]);
    } catch(InvocationTargetException ex) {
      Throwable target = ex.getTargetException();
      if (target instanceof Exception)
        throw (Exception)target;
      throw new IceException(ex.getTargetException(), 500);
    } catch (Exception ex)  {
      throw new NotFoundException("Task ["+request.getTaskName()+"] not found for module ["+request.getModuleName()+"]");
    }
   
    this.postDispatch (method);
   
    if (isUsingTemplate())  {
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.