onError<TEvent extends DomainEvent> abstract method

void onError<TEvent extends DomainEvent>(
  1. TEvent event,
  2. EventHandler<TEvent> handler,
  3. Object error,
  4. StackTrace stackTrace,
)

When the event is failed by the handler the error contains the exception object.

Implementation

void onError<TEvent extends DomainEvent>(
  TEvent event,
  EventHandler<TEvent> handler,
  Object error,
  StackTrace stackTrace,
);