What problem does it solve?
This Skill provides comprehensive strategies and patterns for handling errors gracefully in applications, preventing crashes, and ensuring a smooth user experience even when unexpected issues arise.
Core Features & Use Cases
- Error Isolation: Implement
ErrorBoundary components to catch and manage errors within specific parts of your application, preventing them from cascading and crashing the entire UI.
- Observability: Integrate with OpenTelemetry to automatically record exceptions, create spans for error events, and provide detailed context for debugging in distributed tracing systems.
- User Recovery: Design user-friendly fallback UIs that inform users about errors and offer actionable recovery steps, such as retrying an operation or navigating to a safe state.
- GraphQL Error Management: Configure
errorPolicy for GraphQL queries to handle partial data and specific error types gracefully.
- Retry Strategies: Implement automatic retries with exponential backoff for transient network issues.
- Use Case: When a network request fails, this Skill ensures the user sees a helpful message with a "Try Again" button instead of a blank screen, while simultaneously logging the error with full context to your observability platform.
Quick Start
Wrap your main application component with the ErrorBoundary to catch any unhandled errors.