Examples of ApiException


Examples of com.wordnik.swagger.runtime.exception.APIException

              return mapper.writeValueAsString(input);
          }else{
            return "";
          }
        } catch (IOException ioe) {
            throw new APIException(APIExceptionCodes.ERROR_CONVERTING_JAVA_TO_JSON, "Error in coverting input java to json : " + ioe.getMessage(), ioe);
        }
  }
View Full Code Here

Examples of dovetaildb.api.ApiException

      switch(opHash) {
      case DbServiceUtil.OP_HASH_AS:
      case DbServiceUtil.OP_HASH_OR:
      case DbServiceUtil.OP_HASH_AND:
      case DbServiceUtil.OP_HASH_NOT:
        throw new ApiException("QueryFormatError", "Invalid narrowing operator: "+operation.get(0));
      default:
        ranges.add(parseRange(prefix, opHash, operation));
      }
    }
View Full Code Here

Examples of dovetaildb.apiservice.ApiException

  protected Object handle(String url, boolean insertOrUpdate, HttpServletRequest request, HttpServletResponse response) {
    ParsedRequest req = new ParsedRequest(url, insertOrUpdate, request, response);
    if (req.db == null) req.db = "_metadata";
    RequestAcceptor acceptor = repo.getRequestAcceptor("_metadata");
    if (! acceptor.accept(req) ) {
      throw new ApiException("PermissionDenied","Permission denied");
//      if (! req.response.isCommitted()) {
//        try {
//          req.response.sendError(HttpServletResponse.SC_FORBIDDEN);
//          return;
//        } catch (IOException e) {
View Full Code Here

Examples of gwtappcontainer.server.apps.APIException

      AccessController.ensureLoggedin(user);
     
      Member member = MemberRepository.get(memberId, user.getEmail());
     
      if (null == member)
        throw new APIException(Status.ERROR_RESOURCE_DOES_NOT_EXIST,
            "Unable to find member with id [" + memberId + "]");
     
      ContactDetails contactDetails = member.contactDetails;
     
      if (email != null) contactDetails.email = email;
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

  //error info- code: 404 reason: "Long running process not found" model: <none>
  public String findByIdRaw (String longRunningProcessId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(longRunningProcessId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/long-running-process".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

  //error info- code: 404 reason: "Long running process not found" model: <none>
  public void cancel (String longRunningProcessId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(longRunningProcessId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/long-running-process/cancel".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

  //error info- code: 404 reason: "Edge not found" model: <none>
  public ClientApiEdgeWithVertexData getByEdgeId (String graphEdgeId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(graphEdgeId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/edge/properties".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

  }
  public ClientApiEdgeWithVertexData create (String sourceGraphVertexId, String destGraphVertexId, String predicateLabel, String visibilitySource, String justificationText, String sourceInfo) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(sourceGraphVertexId == null || destGraphVertexId == null || predicateLabel == null || visibilitySource == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/edge/create".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

    public ClientApiArtifactImportResponse importFiles(FileForImport... files) throws ApiException, IOException {
        Object postBody;
        // verify required params are set
        if (files == null || files.length == 0) {
            throw new ApiException(400, "missing required params");
        }
        try {
            // create path and map variables
            String path = (VERTEX_BASE_URL + "import").replaceAll("\\{format\\}", "json");
View Full Code Here

Examples of io.lumify.web.clientapi.codegen.ApiException

  //error info- code: 404 reason: "Vertex not found" model: <none>
  public ClientApiElement getByVertexId (String graphVertexId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(graphVertexId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/vertex/properties".replaceAll("\\{format\\}","json");

    // query params
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.