public interface ErrorHandler
void handleError(ErrorContext errorContext) throws Exception
The error handler has the option to simply log or ignore the error. Depending on the type of EventProcessor this
will put an end to the processing of any further events (in case of a
TrackingEventProcessor) or simply
skip over the list of given
Note that although the UnitOfWork and hence any related database transactions have been rolled back when the error handler is invoked, the processing of one or more of the failedEvents may in fact have caused other side effects which could not be reverted.
errorContext- Contextual information describing the error
Exception- if the handler decides to propagate the error
Copyright © 2010–2020. All rights reserved.