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
ConstructorDescriptionCLNValidationError
(URI source, long offset, CLNValidationStatus status, Optional<UUID> specificationSectionId, String message, Optional<Exception> exception) An error produced during validation. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.long
offset()
Returns the value of theoffset
record component.source()
Returns the value of thesource
record component.Returns the value of thespecificationSectionId
record component.status()
Returns the value of thestatus
record component.final String
toString()
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 thesource
record component.- Returns:
- the value of the
source
record component
-
offset
public long offset()Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
specificationSectionId
Returns the value of thespecificationSectionId
record component.- Returns:
- the value of the
specificationSectionId
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
exception
Returns the value of theexception
record component.- Returns:
- the value of the
exception
record component
-