error-handling
Patterns for robust error handling across TypeScript, Python, and Go. Covers typed errors, error boundaries, retries, circuit breakers, and user-facing error messages. Use when designing error types, retries, circuit breakers, or user-facing failure messages in TypeScript, Python, or Go.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Error Handling Patterns
- When to Activate
- Core Principles
- TypeScript / JavaScript
- Typed Error Classes
- Result Pattern (no-throw style)
- API Error Handler (Next.js / Express)
- React Error Boundary
Consistent, robust error handling patterns for production applications. 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 1. Fail fast and loudly — surface errors at the boundary where they occur; don't bury them 2. Typed errors over string messages — errors are first-class values with structure 3. User messages ≠ developer messages — show friendly text to users, log full context server-side 4. Never swallow errors silently — every catch block must either handle, re-throw, or log 5. Errors are part of your API contract — document every error code a client may receive For operations where failure is expected and common (parsing, external calls): Map error codes to human-readable messages. Keep technical details out of user-visible text. Before merging any code that touches error handling: [ ] Every catch block handles, re-throws, or logs — no silent swallowing [ ] API errors follow the standard envelope { error: { code, messag
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- pi/core/skills/error-handling/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:43.001Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.