Package com.io7m.cedarbridge.errors
Record Class CBError
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.errors.CBError
- Record Components:
lexical- The lexical informationseverity- The error severityexception- The exception associated with the errorerrorCode- The error codemessage- The error message
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.com.io7m.jlexing.core.LexicalPosition<URI>lexical()Returns the value of thelexicalrecord component.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CBError
public CBError(com.io7m.jlexing.core.LexicalPosition<URI> lexical, CBError.Severity severity, Exception exception, String errorCode, String message) Creates an instance of aCBErrorrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
lexical
Returns the value of thelexicalrecord component.- Returns:
- the value of the
lexicalrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-