com.podio.APIApplicationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio;
import java.util.Map;
import com.sun.jersey.api.client.ClientResponse.Status;
public class APIApplicationException extends RuntimeException {
private static final long serialVersionUID = -4533177892434958205L;
private final Status status;
private final String error;
private final String description;
private final Map parameters;
public APIApplicationException(Status status, String error,
String description, Map parameters) {
super();
this.status = status;
this.error = error;
this.description = description;
this.parameters = parameters;
}
@Override
public String toString() {
return "APIException [status=" + status + ", error=" + error
+ ", description=" + description + ", parameters=" + parameters
+ "]";
}
public Status getStatus() {
return status;
}
public String getError() {
return error;
}
public String getDescription() {
return description;
}
public Map getParameters() {
return parameters;
}
}