Package com.wordnik.client

Examples of com.wordnik.client.ApiException


  //error info- code: 404 reason: "Pet not found" model: <none>
  //error info- code: 405 reason: "Validation exception" model: <none>
  public void updatePet (Pet body) throws ApiException {
    // verify required params are set
    if(body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/pet".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here


  }
  //error info- code: 400 reason: "Invalid status value" model: <none>
  public List<Pet> findPetsByStatus (String status) throws ApiException {
    // verify required params are set
    if(status == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/pet/findByStatus".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }
  //error info- code: 400 reason: "Invalid tag value" model: <none>
  public List<Pet> findPetsByTags (String tags) throws ApiException {
    // verify required params are set
    if(tags == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/pet/findByTags".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  //error info- code: 400 reason: "Invalid order" model: <none>
  public void placeOrder (Order body) throws ApiException {
    // verify required params are set
    if(body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  //error info- code: 400 reason: "Invalid ID supplied" model: <none>
  //error info- code: 404 reason: "Order not found" model: <none>
  public void deleteOrder (String orderId) throws ApiException {
    // verify required params are set
    if(orderId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "orderId" + "\\}", apiInvoker.escapeString(orderId.toString()));

    // query params
View Full Code Here

  //error info- code: 400 reason: "Invalid ID supplied" model: <none>
  //error info- code: 404 reason: "Order not found" model: <none>
  public Order getOrderById (String orderId) throws ApiException {
    // verify required params are set
    if(orderId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "orderId" + "\\}", apiInvoker.escapeString(orderId.toString()));

    // query params
View Full Code Here

TOP

Related Classes of com.wordnik.client.ApiException

Copyright © 2018 www.massapicom. 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.