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
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
lexical
-
severity
-
exception
-
errorCode
-
message
-