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

com.podio.APIApplicationException Maven / Gradle / Ivy

There is a newer version: 0.7.9
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy