Record Class IrisError.ReadError
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
java.lang.Record
dev.gecode.iris.IrisError.ReadError
- Record Components:
code- the stable code of the errormessage- the main diagnostic textinputLocation- the location in the input, or null if the error has nonespecLocation- the location in the reader spec, or null if the error has nonecontext- the execution context, outermost first, or null if the error has none
- All Implemented Interfaces:
IrisError, Serializable
- Enclosing interface:
IrisError
-
Nested Class Summary
Nested classes/interfaces inherited from interface IrisError
IrisError.CheckError, IrisError.ReadError, IrisError.SpecErrorModifier and TypeInterfaceDescriptionstatic final recordA check that failed.static final recordAn error found while reading an input.static final recordAn error found while parsing a reader spec. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.@Nullable Stringcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable LocationReturns the value of theinputLocationrecord component.message()Returns the value of themessagerecord component.Returns the indices of a failed check's witness, or null for any other error.@Nullable LocationReturns the value of thespecLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReadError
public ReadError(ErrorCode code, String message, @Nullable Location inputLocation, @Nullable Location specLocation, @Nullable String context) Creates an instance of aReadErrorrecord class.- Parameters:
code- the value for thecoderecord componentmessage- the value for themessagerecord componentinputLocation- the value for theinputLocationrecord componentspecLocation- the value for thespecLocationrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
recordPath
Description copied from interface:IrisErrorReturns the indices of a failed check's witness, or null for any other error.- Specified by:
recordPathin interfaceIrisError- Returns:
- the indices of a failed check's witness, or null for any other error
-
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). -
code
-
message
-
inputLocation
Returns the value of theinputLocationrecord component.- Specified by:
inputLocationin interfaceIrisError- Returns:
- the value of the
inputLocationrecord component
-
specLocation
Returns the value of thespecLocationrecord component.- Specified by:
specLocationin interfaceIrisError- Returns:
- the value of the
specLocationrecord component
-
context
-