Class EventValidationException

All Implemented Interfaces:
Serializable

public class EventValidationException extends EventPublishingException

Exception thrown during publishing of events, in case the batch fails the validation phase.

The exception will contain an array of all BatchItemResponses, independent of their status. There is an ordering guarantee from Nakadi, so that you can correlate the elements in the response with your input batch, and potentially retry only the failed or aborted events. Every record includes the eid (BatchItemResponse.getEid()) which can also be used to identify the event.

See Also:
  • Constructor Details

    • EventValidationException

      public EventValidationException(BatchItemResponse[] responses)