16 package org.openkilda.messaging.error;
18 import static com.google.common.base.MoreObjects.toStringHelper;
22 import com.fasterxml.jackson.annotation.JsonCreator;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
28 import java.util.Objects;
34 @JsonInclude(JsonInclude.Include.NON_NULL)
43 private static final long serialVersionUID = 1L;
48 @JsonProperty(
"error-type")
54 @JsonProperty("error-message")
55 protected String errorMessage;
61 protected String errorDescription;
72 @JsonProperty("error-message") final String errorMessage,
73 @JsonProperty("error-
description") final String errorDescription) {
74 this.errorType = errorType;
75 this.errorMessage = errorMessage;
76 this.errorDescription = errorDescription;
94 this.errorType = errorType;
112 this.errorMessage = errorMessage;
121 return errorDescription;
130 this.errorDescription = errorDescription;
138 return toStringHelper(
this)
139 .add(
"error-type", errorType)
140 .add(
"error-message", errorMessage)
141 .add(
"error-description", errorDescription)
154 if (obj == null || !(obj instanceof
ErrorData)) {
169 return Objects.hash(errorType, errorMessage, errorDescription);
void setErrorDescription(final String errorDescription)
boolean equals(Object obj)
void setErrorType(final ErrorType errorType)
void setErrorMessage(final String errorMessage)
String getErrorDescription()