Add serviceCatalog rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / exceptions / ApiError.java
1 package org.onap.nbi.exceptions;
2
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;
7
8 @XmlAccessorType(XmlAccessType.FIELD)
9 @XmlType(name = "Error", propOrder = {
10         "code",
11         "message",
12         "description",
13         "infoURL"
14 })
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;
24
25     public ApiError() {
26     }
27
28     public ApiError(String code, String message, String description, String infoURL) {
29         this.code = code;
30         this.message = message;
31         this.description = description;
32         this.infoURL = infoURL;
33     }
34
35     public String getCode() {
36         return code;
37     }
38
39     public void setCode(String code) {
40         this.code = code;
41     }
42
43     public String getMessage() {
44         return message;
45     }
46
47     public void setMessage(String message) {
48         this.message = message;
49     }
50
51     public String getDescription() {
52         return description;
53     }
54
55     public void setDescription(String description) {
56         this.description = description;
57     }
58
59     public String getInfoURL() {
60         return infoURL;
61     }
62
63     public void setInfoURL(String infoURL) {
64         this.infoURL = infoURL;
65     }
66 }
67