Record Class MValidationIssue
java.lang.Object
java.lang.Record
com.io7m.montarre.api.validation.MValidationIssue
- Record Components:
kind- The error kinderrorCode- The error codemessage- The messageattributes- The attributes
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorType<String>
public record MValidationIssue(MValidationKind kind, String errorCode, String message, Map<String,String> attributes)
extends Record
implements com.io7m.seltzer.api.SStructuredErrorType<String>
A validation issue.
-
Constructor Summary
ConstructorsConstructorDescriptionMValidationIssue(MValidationKind kind, String errorCode, String message, Map<String, String> attributes) A validation issue. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MValidationIssue
-
-
Method Details
-
remediatingAction
-
exception
-
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). -
kind
-
errorCode
-
message
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>- Returns:
- the value of the
attributesrecord component
-