Record Class ApiError
java.lang.Object
java.lang.Record
pro.nikolaev.restutils.dto.ApiError
- Record Components:
message- a brief error descriptiondetails- details which may describe either reason for an error, ways of resolution to an error or any other additional info. Will be omitted in finalJSONifnull
DTO type that is used to populate
@ResponseBody
of @ExceptionHandler methods in ExceptionHandlingAdvice.- Since:
- 1.0
- Author:
- Ilya Nikolaev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiError
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
message
-
details
-