Package-level declarations

Types

Link copied to clipboard
interface ThrowableWrapper<out T : Throwable>

Implemented by types that wrap a Throwable, enabling transparent asThrowable conversion.

Functions

Link copied to clipboard
inline fun <T> T.asThrowable(fallbackMessage: (T) -> String = { "$it was converted into a Throwable!" }): Throwable

Converts any value of type T to a Throwable: