bunjs:errors
Error handling and resilience for Bun/TypeScript — operational vs programmer errors, AppError hierarchy, centralized handler, boundary validation, timeout/retry/circuit breaker.
Part of bunjs.
4 reference documents, about 562 lines.
The skill itself does not contain them. It reads your question and names the one or two worth opening — which is the point, because loading everything below to answer one question would cost more than the answer is worth.
Overviews
| Document | Covers | Lines |
|---|---|---|
async-pitfalls.md | Async pitfalls | 157 |
resilience-patterns.md | Resilience patterns beyond retry | 122 |
testing-error-paths.md | Testing error paths | 149 |
validation-boundaries.md | Validation boundaries — fail fast, at the edge, once | 134 |
Reading these
You do not open these yourself in normal use — /bunjs:errors picks for you. Read them
directly when you want the reference rather than the answer, or to check what the advice
is actually based on.