1 package org.onap.ccsdk.apps.services;
3 import com.fasterxml.jackson.annotation.JsonProperty;
4 import com.fasterxml.jackson.annotation.JsonRootName;
6 @JsonRootName(value="error")
7 public abstract class RestError {
9 protected String errorType;
10 protected String errorTag;
11 protected String errorPath;
12 protected String errorMessage;
13 protected String errorInfo;
16 @JsonProperty("error-type")
17 public String getErrorType() {
21 @JsonProperty("error-tag")
22 public String getErrorTag() {
26 public void setErrorTag(String errorTag) {
27 this.errorTag = errorTag;
30 @JsonProperty("error-path")
31 public String getErrorPath() {
35 public void setErrorPath(String errorPath) {
36 this.errorPath = errorPath;
39 @JsonProperty("error-message")
40 public String getErrorMessage() {
44 public void setErrorMessage(String errorMessage) {
45 this.errorMessage = errorMessage;
48 @JsonProperty("error-info")
49 public String getErrorInfo() {
53 public void setErrorInfo(String errorInfo) {
54 this.errorInfo = errorInfo;