JS Party: JavaScript, CSS, Web Development cover image

JS logging & error handling

JS Party: JavaScript, CSS, Web Development

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app