It would be nice to have a `runCatching<Specifi...
# stdlib
d
It would be nice to have a
runCatching<SpecificException> { }
version somehow... or/and
onFailure<SpecificException> { e: SpecificException }
I find myself with extra boilerplate (and nesting) `if`s or `when`s in those blocks when I'm only expecting a certain range of Exception types and they need different treatment (and others need to actually be thrown, so I need to call
getOrThrow()
at the end just to rethrow those other exceptions even when I don't need the result...