Record Class IrisError.SpecError
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.SpecError
- Record Components:
code- the stable code of the errormessage- the main diagnostic textlocation- the location in the reader spec
- 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 execution context, outermost first, or null if the error has none.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable LocationReturns the location in the input, or null if the error has none.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.Returns the indices of a failed check's witness, or null for any other error.Returns the location in the reader spec, or null if the error has none.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpecError
-
-
Method Details
-
inputLocation
Description copied from interface:IrisErrorReturns the location in the input, or null if the error has none.- Specified by:
inputLocationin interfaceIrisError- Returns:
- the location in the input, or null if the error has none
-
specLocation
Description copied from interface:IrisErrorReturns the location in the reader spec, or null if the error has none.- Specified by:
specLocationin interfaceIrisError- Returns:
- the location in the reader spec, or null if the error has none
-
context
-
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
-
location
-