Examples of NotFoundException


Examples of abbot.swt.finder.generic.NotFoundException

           
            countdown--;
            ShellTester.getShellTester().actionDelay (WAIT_STANDARD);
        }
        if (statusGood == false)
            throw new NotFoundException ("Unable to start or stop the server");
    }
View Full Code Here

Examples of br.com.caelum.restfulie.http.error.NotFoundException

      throw new ForbiddenException("Http error " + code
          + " when executing request");
    }

    if (code == 404) {
      throw new NotFoundException("Http error " + code
          + " when executing request");
    }

    if (code == 405) {
      throw new MethodNotAllowedException("Http error " + code
View Full Code Here

Examples of br.gov.frameworkdemoiselle.NotFoundException

  @Produces("application/json")
  public Bookmark load(@PathParam("id") Long id) {
    Bookmark result = bc.load(id);

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

    return result;
  }
View Full Code Here

Examples of ch.iterate.openstack.swift.exception.NotFoundException

        if(response.getStatusCode() == HttpStatus.SC_OK) {
            return response.getResponseBodyAsStream();
        }
        else if(response.getStatusCode() == HttpStatus.SC_NOT_FOUND) {
            method.abort();
            throw new NotFoundException(response);
        }
        else {
            method.abort();
            throw new GenericException(response);
        }
View Full Code Here

Examples of co.cask.cdap.client.exception.NotFoundException

    URL url = config.resolveURL(String.format("apps/%s/flows/%s/flowlets/%s/instances", appId, flowId, flowletId));
    HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
                                               HttpURLConnection.HTTP_NOT_FOUND);
    if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
      throw new NotFoundException("application or flow or flowlet", appId + "/" + flowId + "/" + flowletId);
    }

    return ObjectResponse.fromJsonBody(response, Instances.class).getResponseObject().getInstances();
  }
View Full Code Here

Examples of com.amazonaws.services.kms.model.NotFoundException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        NotFoundException e = (NotFoundException)super.unmarshall(json);
        e.setErrorCode("NotFoundException");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.sns.model.NotFoundException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("NotFound"))
            return null;

        NotFoundException e = (NotFoundException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.avaje.ebeaninternal.server.lib.util.NotFoundException

      if (dir.exists()) {
        logger.info("ResourceManager initialised: type[file] [" + fileDir + "]");
        return new FileResourceSource(fileDir);
      } else {
        String msg = "ResourceManager could not find directory [" + fileDir + "]";
        throw new NotFoundException(msg);
      }
    }

    // try to guess the directory starting from the current working
    // directory, and searching to a maximum depth of 3 subdirectories
View Full Code Here

Examples of com.belladati.sdk.exception.server.NotFoundException

      case 400:
      case 401:
      case 403:
        throw buildException(statusCode, content, tokenHolder.hasToken());
      case 404:
        throw new NotFoundException(request.getRequestLine().getUri());
      case 500:
        throw new InternalErrorException();
      default:
        throw new UnexpectedResponseException(statusCode, new String(content));
      }
View Full Code Here

Examples of com.boundlessgeo.geoserver.api.exceptions.NotFoundException

    }

    protected WorkspaceInfo findWorkspace(String wsName, Catalog cat) {
        WorkspaceInfo ws = cat.getWorkspaceByName(wsName);
        if (ws == null) {
            throw new NotFoundException(String.format("No such workspace %s", wsName));
        }
        return ws;
    }
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.