RxJava and Error Handling 1. Introduction In this article, we’ll take a look at how to handle exceptions and errors using RxJava. First, keep in mind that the Observable typically does not throw exceptions. Instead, by default, Observable invokes its Observer’s onError() method, notifying the observer that an unrecoverable error… Continue Reading rxjava-error-handling

RxJava One Observable, Multiple Subscribers 1. Overview The default behavior of multiple subscribers isn’t always desirable. In this article, we’ll cover how to change this behavior and handle multiple subscribers in a proper way. But first, let’s have a look at the default behavior of multiple subscribers. 2. Default Behaviour… Continue Reading rxjava-multiple-subscribers-observable

Combining RxJava Completables 1. Overview In this tutorial, we’ll play with RxJava’s Completable type, which represents a computation result without an actual value. 2. RxJava Dependency Let’s include the RxJava 2 dependency into our Maven project: <dependency> <groupId>io.reactivex.rxjava2</groupId> <artifactId>rxjava</artifactId> <version>2.2.2</version> </dependency> We can usually find the latest version on Maven Central. 3.… Continue Reading rxjava-completable