onError<TError> abstract method

void onError<TError>(
  1. ErrorCallback<TError> handler
)

Registers a handler to be invoked whenever an error of type TError is encountered.

Implementation

void onError<TError>(ErrorCallback<TError> handler);