Record Class ApiError

java.lang.Object
java.lang.Record
pro.nikolaev.restutils.dto.ApiError
Record Components:
message - a brief error description
details - details which may describe either reason for an error, ways of resolution to an error or any other additional info. Will be omitted in final JSON if null

public record ApiError(String message, String details) extends Record
DTO type that is used to populate @ResponseBody of @ExceptionHandler methods in ExceptionHandlingAdvice.
Since:
1.0
Author:
Ilya Nikolaev