Skip to content

Instantly share code, notes, and snippets.

@ggluta
Created July 4, 2019 09:35
Show Gist options
  • Save ggluta/9b70589b620ececd1fdf37ffdd6f1b89 to your computer and use it in GitHub Desktop.
Save ggluta/9b70589b620ececd1fdf37ffdd6f1b89 to your computer and use it in GitHub Desktop.
Wrapper over the JSONs sent by the error mapper in Spring
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Getter;
import nl.abnamro.ignition.api.common.domain.model.Violation;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder
@Getter
public class ErrorDetails {
private Date timestamp;
private String message;
private List<Violation> violations;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment