Package com.io7m.calino.validation.api
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
public record CLNValidationError(URI source, long offset, CLNValidationStatus status, Optional<UUID> specificationSectionId, String message, Optional<Exception> exception)
extends Record
An error produced during validation.
-
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
specificationSectionId
Returns the value of thespecificationSectionIdrecord component.- Returns:
- the value of the
specificationSectionIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-