All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rcore.restapi.exceptions.ExceptionDTO Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
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