We break down how to properly throw, catch, and log errors in JavaScript and TypeScript. They cover client-side and server-side strategies, using tools like Sentry, and how to handle errors without taking down your whole app.
Show Notes
- Welcome to Syntax!
- Error terminology.
- Thrown and catching.
- What’s in an error.
- Name and message.
- Stack.
- Node system errors.
- Messages: strings, objects, or custom errors.
- Throwing errors.
- Promise errors.
- Try catch block, .catch().
- Using awaited-to.
- Finally.
- promise.try()
- Re-throwing errors.
- Client-side errors.
- Catching at different levels.
- Displaying errors.
- Transforming server errors into client errors.
- Error boundaries.
- Server errors.
- JSON API.
- HTTP response codes.
- Logging and solving errors.
- Proudly supported by Sentry.io.
- TypeScript and errors.
Hit us up on Socials!
Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Smart linkhttps://podcast.ru/e/0OKyVQakac-
Official sitehttps://syntax.fm
Auto-openhttps://podcast.ru/e/0OKyVQakac-?a
Add podcast to the siteEmbed Podcast