Skip to content
Throw is about control flow – not error handling episode artwork

EPISODE · Apr 10, 2024 · 1H 4M

Throw is about control flow – not error handling

from Frontend First · host Frontend First

Sam and Ryan talk about why it’s better to think of throw as a general-purpose JavaScript language feature rather than something that should only be used for error handling. They discuss the ambiguity around the phrase “error handling”, situations that call for dealing with errors locally vs. globally, and how throw can be useful for non-error control flow. They also discuss the problems with trying to shoehorn dynamic features into a static site. Topics include: 0:00 - Intro 4:07 - Error handling vs. throw-try/catch 23:34 - Errors vs. Exceptions 31:52 - How Next.js uses throw for non-error control flow 40:44 - Adding a dynamic feature to a static site Links: Global progress in Next.js What color is your function Algebraic Effects for the Rest of Us

Episode metadata supplied by the publisher feed · Published Apr 10, 2024

Embed this episode

Ready to play

Throw is about control flow – not error handling

0:00 1:04:11

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Frontend First?

This episode is 1 hour and 4 minutes long.

When was this Frontend First episode published?

This episode was published on April 10, 2024.

Can I download this Frontend First episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!