pl.project13.jgoogl.response.v1.error.Error Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgoogl Show documentation
Show all versions of jgoogl Show documentation
goo.gl is a Google service to shorten links, much like bit.ly or others.
jGooGl is an wrapper around the API Google offers for this service, using it,
it's really easy to get shortened links or revert such goo.gl/example links.
The newest version!
package pl.project13.jgoogl.response.v1.error;
import java.util.List;
/**
*
* {
* "error": {
* "errors": [
* {
* "domain": "global",
* "reason": "internalError",
* "message": "Internal Error"
* }
* ],
* "code": 500,
* "message": "Internal Error"
* }
* }
*
* Date: 1/16/11
*
* @author Konrad Malawski
*/
public class Error {
List errors;
Integer code;
String message;
public Error() {
}
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
/**
* code is the HTTP status code of this response.
*
* @return the HTTP code of the response
*/
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public String toString() {
return "Error{" +
"errors=" + errors +
", code=" + code +
", message='" + message + "'" +
'}';
}
}