1 package org.onap.nbi.exceptions;
3 import javax.xml.bind.annotation.XmlAccessType;
4 import javax.xml.bind.annotation.XmlAccessorType;
5 import javax.xml.bind.annotation.XmlElement;
6 import javax.xml.bind.annotation.XmlType;
8 @XmlAccessorType(XmlAccessType.FIELD)
9 @XmlType(name = "Error", propOrder = {"code", "message", "description", "infoURL"})
10 public class ApiError {
11 @XmlElement(required = true)
12 protected String code;
13 @XmlElement(required = true)
14 protected String message;
15 @XmlElement(required = true)
16 private String description;
17 @XmlElement(required = true)
18 protected String infoURL;
22 public ApiError(String code, String message, String description, String infoURL) {
24 this.message = message;
25 this.description = description;
26 this.infoURL = infoURL;
29 public String getCode() {
33 public void setCode(String code) {
37 public String getMessage() {
41 public void setMessage(String message) {
42 this.message = message;
45 public String getDescription() {
49 public void setDescription(String description) {
50 this.description = description;
53 public String getInfoURL() {
57 public void setInfoURL(String infoURL) {
58 this.infoURL = infoURL;