O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

onExceptionResumeNext()

The .onExceptionResumeNext() operator resumes the Observable flow with a backup Observable, in case an exception is thrown somewhere upstream. The marble diagram for this operation can be seen here:

The last element on the first line represents an exception occurring in the Observable. However, the onExceptionResumeNext operator is provided with a backup Observable:

That will be used to resume the flow. That is what we can see in the resulting Observable--the first three marbles passed through normally, but the error ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required