What problem does it solve?
This Skill provides a comprehensive framework for understanding, categorizing, and implementing robust error handling across various programming languages, ensuring applications are resilient and user-friendly.
Core Features & Use Cases
- Error Taxonomy: Classify errors into Domain, Infrastructure, and System levels with clear guidelines.
- Language-Specific Patterns: Demonstrates best practices for error creation and propagation in Go, TypeScript, and Python.
- Propagation Decision Tree: Guides developers on when to bubble, wrap, or translate errors.
- User-Facing Guidelines: Ensures error messages are actionable, consistent, and secure.
- Use Case: When developing a new API endpoint, use this Skill to define appropriate error responses for validation failures, service outages, and internal bugs, ensuring a consistent and informative experience for API consumers.
Quick Start
Use the error-handling skill to define a new domain error for a user validation failure in TypeScript.