com.truelayer.java.http.entities.ProblemDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
package com.truelayer.java.http.entities;
import static org.apache.commons.lang3.ObjectUtils.allNotNull;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/**
* Model for errors in the Problem Details format.
*
* @see Problem Details RFC
*/
@Builder
@Getter
@ToString
@EqualsAndHashCode
public class ProblemDetails {
private String type;
private String title;
private String detail;
private Integer status;
private String traceId;
private JsonNode errors;
@JsonIgnore
public boolean isWellFormed() {
return allNotNull(type, title, status);
}
}