onException

fun onException(handler: suspend DktException<*>.() -> Unit)

Function to handle any exception that occur during runtime.