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

net.nowtryz.cafetapi.exceptions.HTTPException Maven / Gradle / Ivy

/**
 * 
 */
package net.nowtryz.cafetapi.exceptions;

import net.nowtryz.cafetapi.http.HTTPResponse;

/**
 * @author Damien
 * @since API 1.0 (2018)
 */
public class HTTPException extends QueryException {
	private static final long serialVersionUID = -3920714431790576493L;
	
	private int code;
	private HTTPResponse response;
	
	/**
	 */
	public HTTPException(String message, int code, HTTPResponse response) {
		super(message);
		this.code = code;
		this.response = response;
	}

	public int getCode() {
		return code;
	}

	public HTTPResponse getResponse() {
		return response;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy