Errors aren’t the problem.
Every system meets things going wrong. A field is left blank, a website is down, the person who needs to approve something is away. That’s not the system failing. It’s the world behaving normally, and the only real question is whether the system knows what to do about it.
Writing that code is really answering a business question. Try again? Skip it and flag it? Stop and ask a person? For a tool that drafts follow-up emails for clinicians, the answers became a do-not-contact list, a preview of every recipient, and a firm rule that the system stops at the draft folder so a person always presses send. For a project rebuilding a career history from decades of records, the answer was to mark conflicting evidence for review rather than guess. None of those are error messages. They’re decisions, made once and followed every time.
Some errors aren’t just possible; they’re certain. LinkedIn rearranges its pages regularly, so a data collection tool that expects everything in a fixed place will work until the day it doesn’t. Treat that change as expected, build for it, and the tool keeps working through it.
The surprise is the valuable part.
An unexpected error is different. When something happens that nobody planned for, the temptation is to call it a bug and patch it. Usually it’s something more useful: proof that an assumption about the business was wrong.
On an order tracking system for a growing practice, an early assumption was “one client, one item.” It failed almost immediately. Real clients had any number of products moving through ordering and production at once. That wasn’t a defect in the code. It was the real shape of the business, showing up for the first time.
So let surprises be loud.
The worst thing a system can do with a surprise is hide it, and quietly produce an answer that looks fine and isn’t. I’d much rather it stop, record what happened, and tell someone. That way people spend their attention on the exceptions, which is exactly where it belongs.
Each surprise, once understood, becomes an expected case with a rule attached. The system gets quieter over time, not because nothing goes wrong, but because it knows what to do about more and more of it. And every time, the business learns something true about itself. That’s the quiet magic of a good error handler: it’s where your assumptions meet reality.