TestCoroutineExceptionHandler

Deprecated

Deprecated for removal without a replacement. It may be to define one's own `CoroutineExceptionHandler` if you just need to handle 'uncaught exceptions without a special `TestCoroutineScope` integration.

An exception handler that captures uncaught exceptions in tests.

Constructors

Functions

Link copied to clipboard
open override fun cleanupTestCoroutines()

Call after the test completes to ensure that there were no uncaught exceptions.

Link copied to clipboard
open override fun handleException(context: CoroutineContext, exception: Throwable)

Properties

Link copied to clipboard
open override val uncaughtExceptions: List<Throwable>

List of uncaught coroutine exceptions.