``` fun handleIAE(e: IllegalArgumentException): In...
# getting-started
j
Copy code
fun handleIAE(e: IllegalArgumentException): Int = 500
fun handleCSE(e: ClassCastException): Int = 500
fun handleRE(e: RuntimeException): Int = 500
val z = mapOf(
        IllegalArgumentException::class to ::handleIAE,
        RuntimeException::class to ::handleRE,
        ClassCastException::class to ::handleCSE)