DefaultUncaughtExceptionHandler

class DefaultUncaughtExceptionHandler : 
    CoroutineExceptionHandler

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

Constructors

<init>

DefaultUncaughtExceptionHandler(logger: Logger)
DefaultUncaughtExceptionHandler(logger: () -> Logger)

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

Properties

key

val key: <ERROR CLASS><out <ERROR CLASS>>

Functions

handleException

fun handleException(
    context: <ERROR CLASS>,
    exception: Throwable
): Unit