error-handling-patterns
Decision framework for picking an error-handling strategy. Catalogues of language-specific code live upstream (links in § Provenance) — this skill is the predicate, not the pattern library. Sunset-policy compliant: large language-specific catalogues stay in authoritative upstream docs.
When to use
- Designing how a new feature, API, or service reports failure.
- Reviewing a diff that introduces a new exception class,
Result<T, E>, or sentinel return. - Debugging production noise that traces back to inconsistent error semantics.
- Choosing between retry, circuit-breaker, fallback, and fail-fast for an external dependency.
Do NOT use when: