AndroidPub
Published in

AndroidPub

Error handling in RxJava/RxKotlin

If you’ve worked with RxJava/RxKotlin, you might be familiar with three methods of a subscriber. onNext , onError and onComplete. In a reactive stream, elements are consumed by onNext first, and onComplete is called when the stream ends. If you encounter any error in onNext, the complete observable chain is abandoned and control is shifted to onError method. So for example, the below code will run perfectly and will provide the…

--

--

--

The (retired) Pub(lication) for Android & Tech, focused on Development

Recommended from Medium

Angular Bad Practices: Revisited

Developing a web app with Clojure server and React UI

JavaScript Fundamentals: Working with Strings

Programmatically uploading NFT PNGs to Arweave through JS APIs 🛠

Angular: Best Practices

JavaScript Course — Part 1/3

Solving Intigriti Challenge using… Content Injection!

Solutions for WE01, WM03 and WH03 BootUp CTF

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aanand Shekhar Roy

Aanand Shekhar Roy

Senior Software Engineer @Joist, Author of Kotlin Programming Cookbook.

More from Medium

Kotlin ⚡️: Variable or Object Initialization | Erselan Khan

Must know operations on Collections in Kotlin

Gradle Task Ordering

Room Migrations — “Testing”