Error Handling

Comprehensive error handling for Next.js applications — use whenever adding or fixing error handling, building database or service layer operations, writing server actions, or making an app production-ready. Covers ServiceError (typed error contract for any external service: DB, API, network), tuple return pattern [error, data], ActionResponse for server actions, React error boundaries, toast notifications, retry with exponential backoff, and circuit breaker patterns. Trigger on: "add error handling", "handle database errors", "handle service errors", "retry failed requests", "error boundary", "handle action errors", "toast on error", "log errors", "circuit breaker", "graceful degradation", "categorizeServiceError", "ServiceError".

JanSzewczyk ef7bf74 5 files · 74.1 KB Updated

File contents

JanSzewczyk/claude-plugins/tree/main/plugins/nextjs/skills/error-handling commit ef7bf741ae

Frequently asked questions

npx skillmds@latest add janszewczyk/error-handling