Try Catch Error Handling With TypeScript
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- 👉 NEW React & Next.js Course: bytegrad.com/c...
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Add authentication to your app FAST: bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/c...
👉 Professional JavaScript Course: bytegrad.com/c...
👉 Professional CSS Course: bytegrad.com/c...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): email.bytegrad...
⏱️ Timestamps:
0:00 Explanation
#webdevelopment #coding #programming
Please make a video for advanced users
A lot of work to make TS happy...
yeah and avoid runtime errors
Or may be dump the whole error thing into some json object and send it to the log, and continue with what you want to do finally. Have another micro service clean this error dump and send to whatever reporting you might need ..
where can i copy that code
Too complex solution
Great video. Keep up the good work :)
Thanks for this great tutorial
Sounds cumbersome. No way thats the most elegant way of dealing with errors.
Preferrably you would know which errors can occur. Eg. By doing features 'contract first' and grilling PO and UX about edge cases and how it could fail 🙂