mesosphere.marathon.client.utils.MarathonException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marathon-client Show documentation
Show all versions of marathon-client Show documentation
A Java API client for Mesosphere's Marathon.
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 + ")";
}
}