Package com.opencqrs.esdb.client.eventql
Interface ErrorHandler
public interface ErrorHandler
Callback interface that needs to be implement for receiving errors from calls to
EsdbClient.query(String, RowHandler, ErrorHandler)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshallingError
(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 requestedRowHandler
.void
Signals 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 requestedRowHandler
.- Parameters:
exception
- the marshalling error that occurredrow
- the row returned from the event store which could not be unmarshalled
-