2020-12-30 15:02:21 +01:00
|
|
|
package eu.dnetlib.usagestats.sushilite.domain;
|
|
|
|
|
2022-09-15 10:14:14 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
2020-12-30 15:02:21 +01:00
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
|
|
import java.text.DateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by tsampikos on 23/11/2016.
|
|
|
|
*/
|
2021-02-22 18:38:10 +01:00
|
|
|
public class SUSHI_Error_Model {
|
|
|
|
private String code;
|
2020-12-30 15:02:21 +01:00
|
|
|
private String severity;
|
|
|
|
private String message;
|
2021-02-22 18:38:10 +01:00
|
|
|
private String helpURL;
|
2020-12-30 15:02:21 +01:00
|
|
|
private String data;
|
|
|
|
|
2021-02-22 18:38:10 +01:00
|
|
|
public SUSHI_Error_Model() {
|
2020-12-30 15:02:21 +01:00
|
|
|
}
|
|
|
|
|
2021-02-22 18:38:10 +01:00
|
|
|
public SUSHI_Error_Model(String code, String severity, String message, String helpURL, String data) {
|
2020-12-30 15:02:21 +01:00
|
|
|
|
2021-02-22 18:38:10 +01:00
|
|
|
this.helpURL = helpURL;
|
2020-12-30 15:02:21 +01:00
|
|
|
|
2021-02-22 18:38:10 +01:00
|
|
|
this.code = code;
|
2020-12-30 15:02:21 +01:00
|
|
|
this.severity = severity;
|
|
|
|
this.message = message;
|
|
|
|
this.data = data;
|
|
|
|
}
|
2022-09-15 10:14:14 +02:00
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
2021-02-22 18:38:10 +01:00
|
|
|
@JsonProperty("Help_URL")
|
|
|
|
public String getHelpURL() {
|
|
|
|
return helpURL;
|
2020-12-30 15:02:21 +01:00
|
|
|
}
|
|
|
|
|
2021-02-22 18:38:10 +01:00
|
|
|
@JsonProperty("Code")
|
|
|
|
public String getCode() {
|
|
|
|
return code;
|
2020-12-30 15:02:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@JsonProperty("Severity")
|
|
|
|
public String getSeverity() {
|
|
|
|
return severity;
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonProperty("Message")
|
|
|
|
public String getMessage() {
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonProperty("Data")
|
|
|
|
public String getData() {
|
|
|
|
return data;
|
|
|
|
}
|
2023-03-27 11:34:53 +02:00
|
|
|
|
|
|
|
public void setCode(String code) {
|
|
|
|
this.code = code;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSeverity(String severity) {
|
|
|
|
this.severity = severity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMessage(String message) {
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHelpURL(String helpURL) {
|
|
|
|
this.helpURL = helpURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setData(String data) {
|
|
|
|
this.data = data;
|
|
|
|
}
|
2020-12-30 15:02:21 +01:00
|
|
|
}
|