catchAndReturn

inline fun <T : Throwable, R> catchAndReturn(err: (T) -> Unit = { it.printStackTrace() }, run: () -> R): R?