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

mesosphere.marathon.client.utils.MarathonException Maven / Gradle / Ivy

There is a newer version: 0.4.9
Show newest version
package mesosphere.marathon.client.utils;

public class MarathonException extends Exception {
	private static final long serialVersionUID = 1L;
	private int status;
	private String message;
	
	public MarathonException(int status, String message) {
		this.status = status;
		this.message = message;
	}
	
	@Override
	public String getMessage() {
		return message + " (http status: " + status + ")";
	}

	@Override
	public String toString() {
		return message + " (http status: " + status + ")";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy