Record Class BasicErrorResponseV1.FieldErrorV1
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.v1.responses.BasicErrorResponseV1.FieldErrorV1
- Enclosing class:
BasicErrorResponseV1
public static record BasicErrorResponseV1.FieldErrorV1(String field, String message, String code)
extends Record
An error about one field of the request.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldErrorV1(String field, String message, String code) Creates an instance of aFieldErrorV1record class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.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
-
FieldErrorV1
-
-
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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-