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

eu.unicore.services.restclient.RESTException Maven / Gradle / Ivy

The newest version!
package eu.unicore.services.restclient;

public class RESTException extends Exception {
	
	private static final long serialVersionUID=1l;
	
	private final int status;
	
	public RESTException(int status, String httpError, String customErrorMessage) {
		super(customErrorMessage + " [HTTP " + status + " " + (httpError!=null? httpError : "" + "]")+"]");
		this.status = status;
	}

	public int getStatus() {
		return status;
	}

	public String getErrorMessage() {
		return getMessage();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy