Suppressed Handler
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
If the Handler.withSuppression block has completed.
Functions
Link copied to clipboard
Link copied to clipboard
fun <T> UncaughtException.Handler?.withSuppression(block: UncaughtException.SuppressedHandler.() -> T): T
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).