podcast

909: Handling and Throwing Errors

09.06.2025
Listen to the episode on your favorite platforms:
  • Apple Podcasts
  • Youtube
  • Spotify
  • Castbox
  • Pocket Casts
  • Stitcher
  • iHeart
  • PlayerFM
  • Overcast
  • Castro
  • RadioPublic

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.
  • TypeScript and errors.

Hit us up on Socials!

Syntax: X Instagram Tiktok LinkedIn Threads

Wes: X Instagram Tiktok LinkedIn Threads

Scott: X Instagram Tiktok LinkedIn Threads

Randy: X Instagram YouTube Threads