by randomdata · 5y ago · 0 comments
Exceptions are best reserved for conditions that should be impossible, but become possible for an exceptional reason (bugs, cosmic rays flipping the wrong bits, etc.)
Exceptions let you put a single error handler higher up in the stack for the one in a million errors, like network errors.