What problem does it solve?
This Skill provides comprehensive error handling patterns across multiple languages, helping you build resilient and reliable applications. It addresses common issues like unhandled exceptions, inconsistent error responses, and cascading failures, ensuring your systems can gracefully recover from unexpected events.
Core Features & Use Cases
- Exception & Result Types: Guides on using custom exception hierarchies for unexpected errors and
Result types for expected, recoverable failures, promoting clear error communication.
- Polly Resilience Policies: Demonstrates how to implement retry with exponential backoff, circuit breakers, and fallbacks using Polly for external service calls and database operations.
- Graceful Degradation: Patterns for ensuring core functionality remains available even when non-critical services fail, improving user experience during outages.
- Use Case: A backend developer integrates with a third-party API that is occasionally unreliable. Using this skill, they implement a Polly policy with retry, circuit breaker, and fallback mechanisms to ensure their application remains stable and responsive despite external service fluctuations.
Quick Start
Implement a C# Result type for a function that parses JSON, returning either a successful object or a SyntaxError.