Skip to Content
Hands-On Reactive Programming with Python
book

Hands-On Reactive Programming with Python

by Romain Picard
October 2018
Intermediate to advanced
420 pages
10h 26m
English
Packt Publishing
Content preview from Hands-On Reactive Programming with Python

The catch_exception operator

The catch_exception operator allows us to catch any error coming from its source observable and to continue to emit items. When the error occurs in the source observable, the catch_exception operator continues the sequence with another sequence of items. Its marble diagram is shown in the following figure:

Figure 4.15: The catch_exception operator

Its prototype is as follows:

Observable.catch_exception(self, second=None, handler=None):

The optional second argument is either an observable to chain when an error occurs in the source observable or a function that returns an observable. The optional handler argument ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Design Patterns

Python Programming with Design Patterns

James W. Cooper

Publisher Resources

ISBN: 9781789138726Supplemental Content