catchError<E> method

Observable<T> catchError<E>(
  1. ErrorHandler<T, E> handler
)

Catches errors of type E thrown by this Observable and handles them by either returning a new Observable of type T, throwing the same or a different error, or returning null to complete the Observable.

Implementation

Observable<T> catchError<E>(ErrorHandler<T, E> handler) =>
    CatchErrorObservable<T, E>(this, handler);