Package com.opencqrs.esdb.client.eventql
Record Class EventQueryProcessingError
java.lang.Object
java.lang.Record
com.opencqrs.esdb.client.eventql.EventQueryProcessingError
- Record Components:
error- error descriptionsstartToken- optional start token regarding the query input stringendToken- optional end token regarding the query input string
public record EventQueryProcessingError(@NotNull String error, EventQueryProcessingError.Token startToken, EventQueryProcessingError.Token endToken)
extends Record
Encapsulates a query processing
error caused by
EsdbClient.query(EventQuery, EventQueryRowHandler, EventQueryErrorHandler).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordEncapsulates a token describing the error position within a malformed or unprocessable query. -
Constructor Summary
ConstructorsConstructorDescriptionEventQueryProcessingError(@NotNull String error, EventQueryProcessingError.Token startToken, EventQueryProcessingError.Token endToken) Creates an instance of aEventQueryProcessingErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionendToken()Returns the value of theendTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Stringerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestartTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventQueryProcessingError
public EventQueryProcessingError(@NotNull @NotNull String error, EventQueryProcessingError.Token startToken, EventQueryProcessingError.Token endToken) Creates an instance of aEventQueryProcessingErrorrecord class.- Parameters:
error- the value for theerrorrecord componentstartToken- the value for thestartTokenrecord componentendToken- the value for theendTokenrecord 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 theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
startToken
Returns the value of thestartTokenrecord component.- Returns:
- the value of the
startTokenrecord component
-
endToken
Returns the value of theendTokenrecord component.- Returns:
- the value of the
endTokenrecord component
-