exception
inline fun <T : Throwable> exception(noinline handler: suspend (call: ApplicationCall, cause: T) -> Unit)
Register an exception handler for the exception type T and its children.
fun <T : Throwable> exception(klass: KClass<T>, handler: suspend (call: ApplicationCall, T) -> Unit)
Register an exception handler for the exception class klass and its children.