Catch

See also

  • Official ReactiveX documentation: Catch
classmethod Observable.catch_exception(*args)

Continues an observable sequence that is terminated by an exception with the next observable sequence.

1 - res = Observable.catch_exception(xs, ys, zs) 2 - res = Observable.catch_exception([xs, ys, zs])

Returns an observable sequence containing elements from consecutive source sequences until a source sequence terminates successfully.

../../_images/catch_exception.png
classmethod Observable.on_error_resume_next(*args)

Continues an observable sequence that is terminated normally or by an exception with the next observable sequence.

1 - res = Observable.on_error_resume_next(xs, ys, zs) 2 - res = Observable.on_error_resume_next([xs, ys, zs]) 3 - res = Observable.on_error_resume_next(xs, factory)

Returns an observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally.

../../_images/on_error_resume_next.png