1 package org.onap.ccsdk.apps.services;
3 import com.fasterxml.jackson.annotation.JsonProperty;
4 import com.fasterxml.jackson.annotation.JsonRootName;
5 import com.fasterxml.jackson.annotation.JsonValue;
8 @JsonRootName(value="error")
9 public class RestProtocolError extends RestError {
12 public RestProtocolError() {
13 this.errorType = "protocol";
16 public RestProtocolError(String errorTag, String errorMessage) {
17 this.errorType = "protocol";
18 this.errorTag = errorTag;
19 this.errorMessage = errorMessage;
20 this.errorInfo = errorMessage;
23 public RestProtocolError(String errorTag, String errorMessage, Throwable t) {
24 this.errorType = "protocol";
25 this.errorTag = errorTag;
26 this.errorMessage = errorMessage;
27 this.errorInfo = t.getLocalizedMessage();