What problem does it solve?
This Skill consolidates robust error handling patterns for UI components, API responses, and form validation in RawDrive.
Core Features & Use Cases
- Error boundaries: Implement React ErrorBoundary components to catch rendering errors and present accessible fallbacks.
- API error schemas: Define consistent backend error structures (error, message, details, request_id) for predictable client handling.
- User-friendly messaging: Map technical errors to clear, actionable messages for users and support teams.
- Loading and empty states: Provide consistent loading indicators and empty-state messaging to improve UX during data fetches.
- Logging & monitoring: Integrate structured logging and error-monitoring (e.g., Sentry) to capture errors with context while avoiding PII.
- Async error handling: Use try/catch flows, error propagation, and retry strategies in client code.
- Security considerations: Avoid leaking sensitive information in errors and logs; ensure proper permissions and exposure controls.
Quick Start
Integrate error handling by wrapping major UI sections with ErrorBoundary and mapping API error codes to user-friendly messages using the ERROR_MESSAGES mapping. Add backend exception handlers to return structured error responses and ensure sensitive data is not logged. Use frontend loading and inline error messaging for resilient UX.