Error Handling Patterns

Design and review error handling in a codebase: which errors are expected results versus bugs, typed error hierarchies or result types, where to catch (boundaries) and where never to, preserving cause chains, mapping errors to HTTP and CLI exit codes, retries with backoff for the transient, timeouts everywhere, and the logging that makes a failure diagnosable; with idioms for TypeScript, Python, Go, and Rust. Use when adding error handling to new code, when a codebase has inconsistent or swallowed errors, or when a failure in production was impossible to trace.

KhaledSaeed18 Updated 5 repo stars
dotclaude

File contents

khaledsaeed18/dotclaude commit a62a39e951

Frequently asked questions

npx get-skill add khaledsaeed18/error-handling-patterns