Concept Flow - Exception handling in coroutines
Start Coroutine
Try block runs
Exception thrown?
No→Coroutine completes normally
Yes
Catch block handles exception
Coroutine resumes or ends
Finally block runs (optional)
Coroutine ends
The coroutine starts and runs code inside a try block. If an exception happens, it jumps to the catch block to handle it, then continues or ends. Finally block runs last if present.