![JAR search and dependency download from the Maven repository](/logo.png)
com.rcore.restapi.exceptions.ExceptionDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api Show documentation
Show all versions of rest-api Show documentation
REST API component for Clean Arch apps
package com.rcore.restapi.exceptions;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@ApiModel("Модель ошибки")
@JsonInclude(JsonInclude.Include.NON_NULL)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Getter
public class ExceptionDTO {
@ApiModelProperty("Данные для отображения")
private PresentationData presentationData;
@ApiModelProperty("Домен")
private String domain;
@ApiModelProperty("Детализация")
private String details;
@ApiModel("Данные для отображения")
@JsonInclude(JsonInclude.Include.NON_NULL)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Getter
public static class PresentationData {
@ApiModelProperty("Заголовок ошибки")
private String title;
@ApiModelProperty("Описание ошибки")
private String message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy