Package com.opencqrs.esdb.client.eventql
Interface EventQueryErrorHandler
public interface EventQueryErrorHandler
Callback interface that needs to be implement for receiving errors from calls to
EsdbClient.query(EventQuery, EventQueryRowHandler, EventQueryErrorHandler).-
Method Summary
Modifier and TypeMethodDescriptionvoidmarshallingError(ClientException.MarshallingException exception, String row) Signals a marshalling error for result rows successfully received from the underlying event store that could not be properly deserialized or transformed to the desired target type by means of the requestedEventQueryRowHandler.voidSignals a query processing error received from the underlying event store, while processing a row for the result set.
-
Method Details
-
queryProcessingError
Signals a query processing error received from the underlying event store, while processing a row for the result set. The error may have been caused both by an invalid query or by a projection error to the result row, e.g. type conversion errors.- Parameters:
error- the error stating that a result row could not be processed successfully
-
marshallingError
Signals a marshalling error for result rows successfully received from the underlying event store that could not be properly deserialized or transformed to the desired target type by means of the requestedEventQueryRowHandler.- Parameters:
exception- the marshalling error that occurredrow- the row returned from the event store which could not be unmarshalled
-