Join Slack
Powered by
When you show the exception from a `catch` block i...
# coroutines
f
Florian
10/26/2020, 12:29 AM
When you show the exception from a
catch
block in the UI, how do you avoid showing CancellationExceptions? Do you have to add an if check?
z
Zach Klippenstein (he/him) [MOD]
10/26/2020, 1:35 AM
You can catch the cancellation exception first and rethrow it, then catch more general exceptions after.
g
gildor
10/26/2020, 1:49 AM
we have universlal error handler, which knows how to handle cancellation (ignore and rethrow it)
4
Views
Open in Slack
Previous
Next