Is the exception thrown in the suspended fun doSomethingAndThrow(…) caught by my try/catch block or it gets caught through the CoroutineScope hierarchy.
What would be a good practice to catch this exception?
l
louiscad
08/06/2019, 8:01 PM
This code doesn't compile. After you fix it, you'll receive
MyException
in the
catch
block, as it would do with non suspending code.
👍 1
p
Pablichjenkov
08/06/2019, 8:04 PM
Sorry about that I just type it out of my head. Is more a pseudo code than actual Kotlin code.
Thanks for responding.