com.liveperson.faas.dto.FaaSError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functions-client Show documentation
Show all versions of functions-client Show documentation
Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)
package com.liveperson.faas.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Objects;
@JsonIgnoreProperties(value = {"errorLogs"})
public class FaaSError {
private String errorCode;
private String errorMsg;
public FaaSError() {
}
public FaaSError(String errorCode, String errorMsg) {
this.errorCode = errorCode;
this.errorMsg = errorMsg;
}
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FaaSError faaSError = (FaaSError) o;
return Objects.equals(errorCode, faaSError.errorCode) &&
Objects.equals(errorMsg, faaSError.errorMsg);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, errorMsg);
}
@Override
public String toString() {
return "FaaSError{" +
"errorCode='" + errorCode + '\'' +
", errorMsg='" + errorMsg + '\'' +
'}';
}
}