What problem does it solve?
This Skill provides a complete guide to implementing robust error handling in Wasp applications, ensuring consistent, secure, and user-friendly error responses. It reduces debugging time and improves application reliability.
Core Features & Use Cases
- Standardized Error Flow: Enforces the critical HTTP error sequence (401 → 404 → 403 → 400 → 500) for server-side operations.
- Input Validation with Zod: Integrates Zod for type-safe and comprehensive input validation, preventing bad data from reaching the backend.
- Client-Side Resilience: Guides on handling errors in React components, displaying user-friendly messages, and implementing retry logic.
- Use Case: Implement comprehensive error handling for a new
updateTask operation, ensuring it throws appropriate HTTP errors (e.g., 401 for unauthenticated, 404 for not found, 400 for invalid input) and displays user-friendly messages on the client.
Quick Start
Implement comprehensive error handling for the updateTask operation. Ensure proper HTTP status codes, Zod validation, and client-side toast notifications.