Android Open Source - MobileSampleSDKs A P I Exception






From Project

Back to project page MobileSampleSDKs.

License

The source code is released under:

GNU General Public License

If you think the Android project MobileSampleSDKs listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * CustomersLib/*from   w  w  w .j a va2 s . c o  m*/
 *
 * This file was automatically generated by APIMATIC BETA v2.0 on 09/17/2014
 */
package io.apimatic.customerslib;

public class APIException extends Exception {
    //UID for serialization
    private static final long serialVersionUID = 6424174253911720338L;

    //private fields
    private int responseCode;

    /**
    * The HTTP response code from the API request
    */
    public int getResponseCode() {
        return responseCode;
    }

    /**
    * Initialization constructor
    * @param  reason  The reason for throwing exception
    * @param  code  The HTTP response code from the API request
    */
    public APIException(String reason, int code) {
        super(reason);
        this.responseCode = code;
    }
}




Java Source Code List

io.apimatic.customerslib.APIException.java
io.apimatic.customerslib.APIException.java
io.apimatic.customerslib.APIHelper.java
io.apimatic.customerslib.APIHelper.java
io.apimatic.customerslib.Configuration.java
io.apimatic.customerslib.Configuration.java
io.apimatic.customerslib.controllers.APIController.java
io.apimatic.customerslib.controllers.APIController.java
io.apimatic.customerslib.models.CustomersModel.java
io.apimatic.customerslib.models.CustomersModel.java