2min chapter

JS Party: JavaScript, CSS, Web Development cover image

JS logging & error handling

JS Party: JavaScript, CSS, Web Development

CHAPTER

Throwing an Error in a Job Asci

You can throw anything in job asci, go up your callstack. The error object is a special thing that you can throw. If you say skip in your function body, like a hook or a test, if you say this tot, skip, it throws. But it throws a special object called a pending. And we just catch the pending. It's not narror, but it just, it throws a thing. That's how wer uncle s tat a good ideaature. Anything's a good idea if it works.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode