error-handling-patterns
Installation
SKILL.md
Error Handling Patterns
Error Classification
| Type | Cause | Can Recover? | Example |
|---|---|---|---|
| Operational | Runtime problem in a correctly-written program | Yes | Network timeout, disk full, invalid input |
| Programmer | Bug in the code | No | TypeError, null dereference, assertion failure |
Operational errors: Anticipate them, handle explicitly, retry if transient, return clear error to caller, log with context. Programmer errors: Crash immediately (fail fast), fix the bug, log full stack trace.