# Handling Swallowed Exceptions in RxJava 2 Tests

DevFeed: [Handling Swallowed Exceptions in RxJava 2 Tests](<https://devfeed.tech/articles/chasing-swallowed-exceptions-15576.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/chasing-swallowed-exceptions>)

Author: Ralf Wondratschek

Published: 2019-08-13T19:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [engineering](<https://devfeed.tech/tags/engineering.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [junit](<https://devfeed.tech/tags/junit.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [rxjava](<https://devfeed.tech/tags/rxjava.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The article explains how exceptions in RxJava 2 streams can reach the JVM's uncaught exception handling path without causing a test to fail. It traces the behavior through RxJava, thread, and global uncaught exception handlers.

## Source excerpt

Handling uncaught errors and crashes in testing