Errors Along the Chain

Learn about the various ways in which errors are propagated to the Observer.

Propagating errors to the Observer

As we’ve seen earlier, one of the events an Observer can receive is the .onError(Throwable) event. The .onError() notification is considered a terminal such that once triggered, the Observable will no longer emit any other event. There are several ways to invoke the .onError() notification. Some are explicit, such as invoking the .onError() on an Emitter:

Get hands-on with 1200+ tech skills courses.