34 lines
736 B
Java
34 lines
736 B
Java
package org.gcube.spatial.data.sdi.model.faults;
|
|
|
|
import javax.xml.bind.annotation.XmlElement;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
import lombok.Data;
|
|
|
|
@XmlRootElement
|
|
@Data
|
|
public class ErrorMessage {
|
|
|
|
/** contains the same HTTP Status code returned by the server */
|
|
@XmlElement(name = "status")
|
|
int status;
|
|
|
|
/** application specific error code */
|
|
@XmlElement(name = "code")
|
|
int code;
|
|
|
|
/** message describing the error*/
|
|
@XmlElement(name = "message")
|
|
String message;
|
|
|
|
/** link point to page where the error message is documented */
|
|
@XmlElement(name = "link")
|
|
String link;
|
|
|
|
/** extra information that might useful for developers */
|
|
@XmlElement(name = "developerMessage")
|
|
String developerMessage;
|
|
|
|
|
|
}
|