Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Error Handling Patterns
Build resilient applications with robust error handling strategies that gracefully handle failures and provide excellent debugging experiences.
## When to Use This Skill
- Implementing error handling in new features
- Designing error-resilient APIs
- Debugging production issues
- Improving application reliability
- Creating better error messages for users and developers
- Implementing retry and circuit breaker patterns
- Handling async/concurrent errors
- Building fault-tolerant distributed systems
## Core Concepts
### 1. Error Handling Philosophies
**Exceptions vs Result Types:**
- **Exceptions**: Traditional try-catch, disrupts control flow
- **Result Types**: Explicit success/failure, functional approach
- **Error Codes**: C-style, requires discipline
- **Option/Maybe Types**: For nullable values
**When to Use Each:**
- Exceptions: Unexpected errors, exceptional conditions
- Result Types: Expected errors, validation failures
- Panics/Crashes: Unrecoverable errors, programming bugs
### 2. Error Categories
**Recoverable Errors:**
- Network timeouts
- Missing files
- Invalid user input
- API rate limits
**Unrecoverable Errors:**
- Out of memory
…
The line at the top of this page pins the label git:20251120.288a379, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_hg6mqq3425u24zya
GET https://markdownregistry.com/api/v1/resolve?ref=hermeticormus/libreuiux-claude-code/error-handling-patterns
GET https://markdownregistry.com/api/v1/blob/aa8f11361c893893a0007b58f9322bb92cfcffa5b7b91f506059935192a3e68d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
hermeticormus/libreuiux-claude-code · .grok/skills/verify-libreuiux/SKILL.md · Install the LibreUIUX-Claude-Code plugin pack the way a user does, into a clean Claude Code config and a clean Grok…
hermeticormus/libreuiux-claude-code · plugins/agent-orchestration/skills/ui-agent-patterns/SKILL.md · Patterns for delegating UI work to agents: one synthesis agent versus specialized agents, multi-agent pipelines for…
hermeticormus/libreuiux-claude-code · plugins/archetypal-alchemy/skills/archetypal-combinations/SKILL.md · Rules and worked examples for combining an archetype (structure and behavior) with a Major Arcana card (color and mood)…
hermeticormus/libreuiux-claude-code · plugins/archetypal-alchemy/skills/major-arcana/SKILL.md · The 22 Major Arcana cards mapped to color palettes, lighting, gradients, and moods for UI. Use when a design needs a…
hermeticormus/libreuiux-claude-code · plugins/backend-development/skills/api-design-principles/SKILL.md · Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight…
hermeticormus/libreuiux-claude-code · plugins/backend-development/skills/temporal-python-testing/SKILL.md · Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing…
hermeticormus/libreuiux-claude-code · plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md · Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems. Use when…
wshobson/agents · plugins/developer-essentials/skills/error-handling-patterns/SKILL.md · Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful…
dicklesworthstone/pi_agent_rust · tests/ext_conformance/artifacts/agents-wshobson/developer-essentials/skills/error-handling-patterns/SKILL.md · Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful…
hermeticormus/claude-code-game-development · plugins/developer-essentials/skills/error-handling-patterns/SKILL.md · Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful…
rudycity/superagent · .agents/skills/error-handling-patterns/SKILL.md · Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful…
event4u-app/agent-config · src/skills/error-handling-patterns/SKILL.md · Use when picking a failure-reporting strategy — exceptions vs Result types, recoverable vs not, retry / circuit-breaker…
khaledsaeed18/dotclaude · .claude-plugin/plugins/engineering/skills/error-handling-patterns/SKILL.md · Design and review error handling in a codebase: which errors are expected results versus bugs, typed error hierarchies…
khaledsaeed18/dotclaude · skills/engineering/error-handling-patterns/SKILL.md · Design and review error handling in a codebase: which errors are expected results versus bugs, typed error hierarchies…