What problem does it solve?
This skill addresses the challenge of inconsistent error handling, silent failures, and poor user feedback in complex applications by providing standardized patterns for error propagation and recovery.
Core Features & Use Cases
- Typed Error Hierarchies: Define structured, domain-specific error classes for TypeScript, Python, and Go to ensure type safety and consistent API responses.
- Resilience Patterns: Implement retry logic with exponential backoff and circuit breakers to handle transient failures in external dependencies.
- User-Facing Feedback: Map technical errors to human-readable messages while maintaining secure, detailed server-side logging.
- Use Case: Use these patterns to refactor a service that currently swallows database exceptions, ensuring that every error is logged with context and the client receives a meaningful, standardized error response.
Quick Start
Apply the error handling patterns by defining a base AppError class and wrapping your service layer calls in a result-based pattern to ensure all failures are explicitly handled.