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 Type
    Method
    Description
    void
    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 requested RowHandler.
    void
    Signals a query processing error received from the underlying event store, while processing a row for the result set.
  • Method Details

    • queryProcessingError

      void queryProcessingError(QueryProcessingError error)
      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

      void 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 requested RowHandler.
      Parameters:
      exception - the marshalling error that occurred
      row - the row returned from the event store which could not be unmarshalled