onError<TEvent extends DomainEvent> abstract method
void
onError<TEvent extends DomainEvent>(
- TEvent event,
- EventHandler<
TEvent> handler, - Object error,
- 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,
);