multiCatch

inline fun multiCatch(runThis: () -> Unit, catchBlock: (Throwable) -> Unit, vararg exceptions: KClass<out Throwable>)

Take multiple Exceptions to catch and call the catchBlock if it gets thrown. If the thrown Exception is not in the list it will be just forwarded.