All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xero.api.XeroNotFoundException Maven / Gradle / Ivy

package com.xero.api;

/** handle not found exception  */
public class XeroNotFoundException extends XeroException {

    private static final long serialVersionUID = 1L;
    private int statusCode = 0;
    private String message;
    
    /** Init XeroNotFoundException 
    * @param statusCode int the server status code returned.
    * @param message String the message pertaining to the rate limit
    * @param e Exception object with details about the original exception
    */
    public XeroNotFoundException(int statusCode, String message, Exception e) {
        super(statusCode + " : " + message, e);
        this.statusCode = statusCode;
        this.message = message;
    }

    /** get Status Code 
    * @return int with server status code.
    */
    public int getStatusCode() {
        return statusCode;
    }

    /** get message
    * @return Sting with the message pertaining to the rate limit
    */
    public String getMessage() {
        return message;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy