Global Error Handling
SKILL.md
Global Error Handling
When to use this skill
- When implementing try-catch blocks for error handling
- When throwing or catching exceptions in your code
- When handling API errors from external services
- When implementing retry logic with exponential backoff
- When managing resources that need cleanup (file handles, connections)
- When creating error messages for end users
- When establishing centralized error handling strategies
- When implementing graceful degradation for non-critical failures
- When using specific exception types instead of generic ones
- When working on code that interacts with databases, APIs, or file systems
- When validating input and failing fast with clear error messages
- When ensuring security by not exposing technical details in error messages
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global error handling.
Instructions
For details, refer to the information provided in this file: global error handling