jakub.dyszkiewicz
11/11/2018, 9:07 AMfun 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)