Record Class CLNValidationError
java.lang.Object
java.lang.Record
com.io7m.calino.validation.api.CLNValidationError
- Record Components:
source- The source fileoffset- The octet offset of the errorstatus- The error statusspecificationSectionId- The UUID of the specification section describing the error, if anymessage- The error messageexception- The exception, if any
-
Constructor Summary
ConstructorsConstructorDescriptionCLNValidationError(URI source, long offset, CLNValidationStatus status, Optional<UUID> specificationSectionId, String message, Optional<Exception> exception) An error produced during validation. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.longoffset()Returns the value of theoffsetrecord component.source()Returns the value of thesourcerecord component.Returns the value of thespecificationSectionIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNValidationError
public CLNValidationError(URI source, long offset, CLNValidationStatus status, Optional<UUID> specificationSectionId, String message, Optional<Exception> exception) An error produced during validation.- Parameters:
source- The source fileoffset- The octet offset of the errorstatus- The error statusspecificationSectionId- The UUID of the specification section describing the error, if anymessage- The error messageexception- The exception, if any
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
source
-
offset
-
status
-
specificationSectionId
Returns the value of thespecificationSectionIdrecord component.- Returns:
- the value of the
specificationSectionIdrecord component
-
message
-
exception
-