Examples of NotFoundException


Examples of org.openqa.selenium.NotFoundException

        String origin;
        WebDriver driver = context.getWrappedDriver();
        try {
            String handle = driver.getWindowHandle();
            if (StringUtils.isEmpty(handle))
                throw new NotFoundException();
            driver.switchTo().window(handle);
            String url = driver.getCurrentUrl();
            String title = driver.getTitle();
            message = formatUrlAndTitle(url, title);
            origin = getOrigin(url);
View Full Code Here

Examples of org.pentaho.platform.api.engine.security.userroledao.NotFoundException

    Group jackrabbitGroup = getJackrabbitGroup( theTenant, roleName, session );

    if ( ( jackrabbitGroup == null )
        || !TenantUtils.isAccessibleTenant( theTenant == null ? tenantedRoleNameUtils.getTenant( jackrabbitGroup
            .getID() ) : theTenant ) ) {
      throw new NotFoundException( Messages.getInstance().getString(
          "AbstractJcrBackedUserRoleDao.ERROR_0002_ROLE_NOT_FOUND" ) );
    }
    HashMap<String, User> currentlyAssignedUsers = new HashMap<String, User>();
    Iterator<Authorizable> currentMembers = jackrabbitGroup.getMembers();
    while ( currentMembers.hasNext() ) {
View Full Code Here

Examples of org.serviceconnector.web.NotFoundException

    OutputStream responseOutputStream = response.getOutputStream();
    if (isResource(url)) {
      String resourcePath = getResourcePath(url);
      InputStream is = WebUtil.loadResource(resourcePath);
      if (is == null) {
        throw new NotFoundException(url);
      }
      response.setContentType(getResourceType(url));
      dumpStream(is, responseOutputStream);
      return;
    }
View Full Code Here

Examples of org.sonar.server.exceptions.NotFoundException

  }

  public Rule getNonNullByKey(RuleKey key) {
    Rule rule = index.getNullableByKey(key);
    if (rule == null) {
      throw new NotFoundException("Rule not found: " + key);
    }
    return rule;
  }
View Full Code Here

Examples of org.springframework.security.acls.model.NotFoundException

        Map<ObjectIdentity, Acl> result = lookupStrategy.readAclsById(objects, sids);

        // Check every requested object identity was found (throw NotFoundException if needed)
        for (ObjectIdentity oid : objects) {
            if (!result.containsKey(oid)) {
                throw new NotFoundException("Unable to find ACL information for object identity '" + oid + "'");
            }
        }

        return result;
    }
View Full Code Here

Examples of org.structr.rest.exception.NotFoundException

    if (parentClass.isAssignableFrom(entityClass)) {
      return entity;
    }

    throw new NotFoundException();

  }
View Full Code Here

Examples of org.tamacat.httpd.exception.NotFoundException

  @Override
  protected HttpEntity getEntity(String html) {
    try {
      return new StringEntity(html);
    } catch (UnsupportedEncodingException e) {
      throw new NotFoundException(e);
    }
  }
View Full Code Here

Examples of programming5.collections.NotFoundException

        int ret = ArrayOperations.seqFind(tag, args);
        if (ret >= 0) {
            return ret;
        }
        else {
            throw new NotFoundException();
        }
    }
View Full Code Here

Examples of slash.navigation.catalog.domain.exception.NotFoundException

        Post request = prepareAddCategory(categoryUrl, name);
        String result = request.executeAsString();
        if (request.isUnAuthorized())
            throw new UnAuthorizedException("Cannot add category " + name, categoryUrl);
        if (request.isNotFound())
            throw new NotFoundException("Cannot add category " + name, categoryUrl);
        if (request.isForbidden())
            throw new DuplicateNameException("Cannot add category " + name, categoryUrl);
        if (!request.isSuccessful())
            throw new IOException("POST on " + categoryUrl + " with payload " + name + " not successful: " + result);
        return request.getLocation();
View Full Code Here

Examples of spark.examples.exception.NotFoundException

        get("/throwsubclassofbaseexception", (request, response) -> {
            throw new SubclassOfBaseException();
        });

        get("/thrownotfound", (request, response) -> {
            throw new NotFoundException();
        });

        exception(UnsupportedOperationException.class, (exception, request, response) -> {
            response.body("Exception handled");
        });
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.