2021-04-15 02:36:08 +02:00
|
|
|
package eu.openaire.urls_controller.models;
|
|
|
|
|
2021-04-24 20:05:21 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
2021-04-15 02:36:08 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
2021-04-24 20:05:21 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
2021-04-15 02:36:08 +02:00
|
|
|
|
2021-04-24 20:05:21 +02:00
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonPropertyOrder({
|
|
|
|
"type",
|
|
|
|
"message"
|
|
|
|
})
|
2021-04-15 02:36:08 +02:00
|
|
|
public class Error {
|
|
|
|
|
|
|
|
@JsonProperty("type")
|
2021-04-24 20:05:21 +02:00
|
|
|
private String type;
|
2021-04-15 02:36:08 +02:00
|
|
|
|
|
|
|
@JsonProperty("message")
|
2021-04-24 20:05:21 +02:00
|
|
|
private String message;
|
2021-04-15 02:36:08 +02:00
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMessage() {
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMessage(String message) {
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "Error{" +
|
|
|
|
"type='" + type + '\'' +
|
|
|
|
", message='" + message + '\'' +
|
|
|
|
'}';
|
|
|
|
}
|
|
|
|
}
|