09 Jun 2025
39m

909: Handling and Throwing Errors

Podcast cover

Syntax - Tasty Web Development Treats

In this episode of Syntax, Wes and Scott delve into the intricacies of error handling in JavaScript, covering the terminology around throwing and catching errors, the components of an error object (name, message, stack trace), and the nuances of throwing errors versus handling them directly. They discuss strategies for dealing with errors in both synchronous and asynchronous code, as well as client-side versus server-side environments, including the importance of not exposing sensitive server error details to the client. The hosts also touch on tools and techniques like try-catch blocks, promises, error boundaries, HTTP response codes, and the use of Sentry for logging and fixing errors in production, emphasizing the significance of proper error handling for application stability and user experience.

Outlines

Part 1: Introduction and Error Fundamentals

Part 2: Error Handling Techniques

Part 3: Client-Side Error Management

Part 4: Server-Side Error Management and Logging

Part 5: TypeScript and Conclusion

Sign in to continue reading, translating and more.

Open full episode in Podwise