error-handling
CommunityRobust error handling strategies for applications.
Software Engineering#error handling#logging#resilience#exception handling#application architecture#retry pattern
Author101mare
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of managing errors and exceptions effectively across different layers of an application, ensuring resilience and maintainability.
Core Features & Use Cases
- Layered Exception Handling: Defines distinct responsibilities for handling errors in infrastructure, service, and API/CLI layers.
- Exception Mapping: Translates low-level exceptions into domain-specific errors at layer boundaries.
- Retry Mechanisms: Implements safe retry logic with exponential backoff for transient failures.
- Logging Best Practices: Guides on correct exception logging to preserve tracebacks.
- Graceful Degradation: Provides strategies for maintaining functionality when services fail.
- Use Case: When building a web service, use this Skill to ensure that database connection errors are caught by the repository layer, translated into a
ServiceUnavailabledomain error, and then mapped to a 503 HTTP response by the API layer, all while logging the original error with its traceback.
Quick Start
Use the error-handling skill to implement a retry mechanism with exponential backoff for a function that calls an external API.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: error-handling Download link: https://github.com/101mare/skill-library/archive/main.zip#error-handling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.