Concept Flow - Error handling with async and await
Start async function
Try block: await async call
Async call success?
No→Catch block: handle error
Error handled/logged
Continue after await
End function
The async function tries to await a promise. If it succeeds, it continues. If it fails, the catch block handles the error.