io.convergence_platform.common.dto.FailureInfoDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.common.dto;
import io.convergence_platform.common.responses.IApiResponseBody;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;
public class FailureInfoDTO implements IApiResponseBody {
@JsonProperty("code")
private String code = "";
@JsonProperty("message")
private String message = "";
@JsonProperty("status_code")
private int httpStatusCode = 500;
@JsonProperty("request_id")
private UUID requestId = null;
@JsonProperty("parent_request_id")
private UUID parentRequestId = null;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public int getHttpStatusCode() {
return httpStatusCode;
}
public void setHttpStatusCode(int httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
public UUID getRequestId() {
return requestId;
}
public void setRequestId(UUID requestId) {
this.requestId = requestId;
}
public UUID getParentRequestId() {
return parentRequestId;
}
public void setParentRequestId(UUID parentRequestId) {
this.parentRequestId = parentRequestId;
}
@Override
public String getResponseBodyType() {
return "api_failure";
}
}