Error Handling
Posted on February 19, 2026
Categories: Code — Tags: none
Years ago I read an article on error handling that stuck with me. I rambled what I could from memory at a coworker earlier today; then I googled around and found a copy of the original article on the Internet Archive:
https://web.archive.org/web/20220223020910/https://www.joyent.com/node-js/production/design/errors
It’s a good read. It’s aimed at Node developers, so some of the details aren’t particularly relevant to others, like details about the Error object, and callbacks versus throwing.1 My big takeaway is the distinction between operational errors—things we expect to happen, like connection errors, validation errors, and the like—and programmer errors, which are simply bugs.
- I’m sure there are other languages using callbacks, but they were the standard error handling in JS ‘til Promises.↩
Tags: none
