Package com.opencqrs.esdb.client.eventql
Record Class QueryProcessingError
java.lang.Object
java.lang.Record
com.opencqrs.esdb.client.eventql.QueryProcessingError
- Record Components:
error
- error descriptionsstartToken
- optional start token regarding the query input stringendToken
- optional end token regarding the query input string
public record QueryProcessingError(@NotNull String error, QueryProcessingError.Token startToken, QueryProcessingError.Token endToken)
extends Record
Encapsulates a query processing error caused by
EsdbClient.query(String, RowHandler, ErrorHandler)
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Encapsulates a token describing the error position within a malformed or unprocessable query. -
Constructor Summary
ConstructorsConstructorDescriptionQueryProcessingError
(@NotNull String error, QueryProcessingError.Token startToken, QueryProcessingError.Token endToken) Creates an instance of aQueryProcessingError
record class. -
Method Summary
Modifier and TypeMethodDescriptionendToken()
Returns the value of theendToken
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull String
error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestartToken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
QueryProcessingError
public QueryProcessingError(@NotNull @NotNull String error, QueryProcessingError.Token startToken, QueryProcessingError.Token endToken) Creates an instance of aQueryProcessingError
record class.- Parameters:
error
- the value for theerror
record componentstartToken
- the value for thestartToken
record componentendToken
- the value for theendToken
record component
-
-
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)
. -
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-
startToken
Returns the value of thestartToken
record component.- Returns:
- the value of the
startToken
record component
-
endToken
Returns the value of theendToken
record component.- Returns:
- the value of the
endToken
record component
-