onError<TEvent> abstract method
When the event
is failed by the handler
the error
contains the
exception object.
Implementation
void onError<TEvent>(
TEvent event,
EventHandler handler,
Object error,
StackTrace stackTrace,
);