exception
inline fun <T : Throwable> exception(noinline handler: suspend (<ERROR CLASS>, T) -> Unit)
Content copied to clipboard
Register an exception handler for the exception type T and its children.
fun <T : Throwable> exception(klass: KClass<T>, handler: suspend (<ERROR CLASS>, T) -> Unit)
Content copied to clipboard
Register an exception handler for the exception class klass and its children.