exception

inline fun <reified T : Throwable> exception(
    noinline handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit
): Unit

Register exception handler for exception type T and it’s children

fun <T : Throwable> exception(
    klass: Class<T>,
    handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit
): Unit

Register exception handler for exception class klass and it’s children