DefaultUncaughtExceptionHandler

class DefaultUncaughtExceptionHandler(logger: () -> <ERROR CLASS>) : CoroutineExceptionHandler

Handles all uncaught exceptions and logs errors with the specified logger ignoring CancellationException and IOException.

Constructors

Link copied to clipboard
fun DefaultUncaughtExceptionHandler(logger: <ERROR CLASS>)
Link copied to clipboard
fun DefaultUncaughtExceptionHandler(logger: () -> <ERROR CLASS>)

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
open override fun handleException(context: CoroutineContext, exception: Throwable)
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext

Properties

Link copied to clipboard
open override val key: CoroutineContext.Key<*>