[Code health] Stop catching Throwable
#2907
Labels
type: code health
Improvements to readability or robustness of codebase
Throwable
#2907
If we need to catch all errors, catch Exception instead.
Also, we should avoid using Kotlin
error()
except for unrecoverable exceptions.We may also want to avoid using
runCatching
, as it requires us to remember to explicitly the exception type infold
or other handler lambdas.From Kotlin docs (link):
The text was updated successfully, but these errors were encountered: