Package com.pain001.sdk
Record Class RowError
java.lang.Object
java.lang.Record
com.pain001.sdk.RowError
- Record Components:
field- the input column or field at faultmessage- what is wrongvalue- the offending value as the server sent it (any JSON), or JSON null
public record RowError(String field, String message, com.fasterxml.jackson.databind.JsonNode value)
extends Record
One row-level validation error from
validate or generate.
This is pain001's row error, not the request-validation items of an HTTP 422 detail,
which Pain001ApiException.detail() carries as raw JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.com.fasterxml.jackson.databind.JsonNodevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
value
public com.fasterxml.jackson.databind.JsonNode value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-