Record Class SimpleJsonErrorModel
java.lang.Object
java.lang.Record
io.micronaut.testresources.client.SimpleJsonErrorModel
- Record Components:
message- the error messageembedded- the embedded error messages
public record SimpleJsonErrorModel(String message, SimpleJsonErrorModel.Embedded embedded)
extends Record
Model for error messages.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSimpleJsonErrorModel(String message, SimpleJsonErrorModel.Embedded embedded) Creates an instance of aSimpleJsonErrorModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionembedded()Returns the value of theembeddedrecord 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
-
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
-
embedded
-