Bob Glamm
Try { foo() } .fold({ t -> when(t) { is FooException -> ... is BarException -> ... else -> ... }}, { result -> ... })