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 = {
15 public class ApiError {
16 @XmlElement(required = true)
17 protected String code;
18 @XmlElement(required = true)
19 protected String message;
20 @XmlElement(required = true)
21 private String description;
22 @XmlElement(required = true)
23 protected String infoURL;
28 public ApiError(String code, String message, String description, String infoURL) {
30 this.message = message;
31 this.description = description;
32 this.infoURL = infoURL;
35 public String getCode() {
39 public void setCode(String code) {
43 public String getMessage() {
47 public void setMessage(String message) {
48 this.message = message;
51 public String getDescription() {
55 public void setDescription(String description) {
56 this.description = description;
59 public String getInfoURL() {
63 public void setInfoURL(String infoURL) {
64 this.infoURL = infoURL;