SuppressedHandler

A special Handler utilized within Handler.withSuppression lambda which propagates all exceptions caught by Handler.tryCatch into a single, root exception (the first thrown), with all subsequent exceptions added via Throwable.addSuppressed.

Properties

Link copied to clipboard
@get:JvmName(name = "isActive")
val isActive: Boolean

If the Handler.withSuppression block has completed.

Functions

Link copied to clipboard
open operator override fun invoke(it: UncaughtException)
Link copied to clipboard

Helper for wrapping external function calls in order to redirect any uncaught exceptions.

Link copied to clipboard

Wraps an existing handler with suppression such that any invocation of tryCatch within block lambda is combined into a single UncaughtException, which is then propagated to the current handler (if there even was an UncaughtException).