
Error Handling
This is a well-structured reference for production error handling patterns across TypeScript, Python, and Go. You get typed error hierarchies, the Result pattern for no-throw code paths, API error handlers for Next.js and FastAPI, React error boundaries, and Go's sentinel error wrapping. The examples are opinionated in the right ways: fail fast, never swallow errors silently, separate user-facing messages from logs, and treat error codes as part of your API contract. Activate this when you're adding retry logic, reviewing endpoints for missing error cases, or debugging cascading failures. The cross-language coverage is genuinely useful if you work in polyglot codebases or want consistent patterns across services.
- skills.sh installs
- 5.8K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill error-handling --agent claude-codeInstalls into .claude/skills of the current project.
Files
Error Handling Patterns
Consistent, robust error handling patterns for production applications.
When to Activate
- Designing error types or exception hierarchies for a new module or service
- Adding retry logic or circuit breakers for unreliable external dependencies
- Reviewing API endpoints for missing error handling
- Implementing user-facing error messages and feedback
- Debugging cascading failures or silent error swallowing
Core Principles
- Fail fast and loudly — surface errors at the boundary where they occur; don't bury them
- Typed errors over string messages — errors are first-class values with structure
- User messages ≠ developer messages — show friendly text to users, log full context server-side
- Never swallow errors silently — every
catchblock must either handle, re-throw, or log - Errors are part of your API contract — document every error code a client may receive
TypeScript / JavaScript
Typed Error Classes
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Debugging, Python
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Ui Demo5.8K
- Agentic Engineering5.8K
- Vite Patterns5.8K
- Bun Runtime5.8K
- Agent Architecture Audit5.8K
- Nodejs Keccak2565.8K
- Security Scan5.8K
- Cpp Testing5.8K
- Django Tdd5.8K
- Dashboard Builder5.7K
- Redis Patterns5.7K
- Eval Harness5.7K
- Manim Video5.7K
- Content Engine5.7K
- Springboot Tdd5.7K
- Motion Patterns5.7K
- Configure Ecc5.7K
- Token Budget Advisor5.7K
- Investor Materials5.7K
- Agent Introspection Debugging5.7K
- Laravel Verification5.7K
- Marketing Campaign5.7K
- Motion Foundations5.7K
- Kotlin Testing5.7K