Concept Flow - Error handling (tryCatch)
Start
Try block runs
Error?
No→Try block finishes normally
Yes
Catch error handler runs
Finally block runs (optional)
End
The program tries to run code in the try block. If an error happens, it jumps to the catch block. Finally block runs at the end no matter what.