Loading video player…

Welcome to the All-or-Nothing Import

Welcome to JavaScript Error Handling in Depth for Pythonistas! You’ll port Joan’s monthly donation import for a community food bank. The trustees want every bad row reported together, with nothing imported until the whole month is ready.

A direct port can behave differently from the Python script. In the welcome’s preview, Python reports November’s three bad rows together, while the JavaScript port stops with an AggregateError. The video shows an excerpt of that error report, with its stack omitted. You’ll investigate the difference during the course.

By the end of this course, you’ll be able to:

  • Define a family of errors for your program’s different failures.
  • Keep the original error when you wrap it in a clearer one.
  • Report several failures together.
  • Step through a running script to investigate its behavior.
  • Combine those skills in an all-or-nothing donation import.

Before starting, know Python’s custom exception classes, exception chaining, exception groups, and debugger use. In JavaScript, know classes with extends and super(), plus try/catch, throw, and instanceof. You should also know how to run a JavaScript file in an existing project.

Have a current Node.js installation available. The examples use Node 26 and Python 3.15.

Short videos mix with text lessons and four coding exercises. Each video has a written summary below it. A quiz and a closing summary finish the course.

In the next text lesson, Defining Your Own Error Classes, you’ll start with the import’s three Python exception classes.

Download

Sample Code (.zip)

15.8 KB
Download

Course Slides (.pdf)

1.1 MB

Become a Member to join the conversation.