Package com.io7m.montarre.api.validation
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
-
Method Details
-
remediatingAction
- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
errorCode
Returns the value of theerrorCoderecord component. -
message
Returns the value of themessagerecord component. -
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>- Returns:
- the value of the
attributesrecord component
-