Join Slack
Powered by
Should I wrap every function inside a try-catch bl...
# android
a
angery
12/18/2025, 12:27 PM
Should I wrap every function inside a try-catch block?
nono
3
a
andylamax
12/18/2025, 12:34 PM
Bad idea. You should only try-catch if you are trying to handle errors.
j
jamshedalamqaderi
12/18/2025, 3:12 PM
You could use
try/catch
or
runCatching
at the final call. As an example in ViewModels
8
Views
Open in Slack
Previous
Next