Skip to main content

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

DocumentCoversLines
async-pitfalls.mdAsync pitfalls157
resilience-patterns.mdResilience patterns beyond retry122
testing-error-paths.mdTesting error paths149
validation-boundaries.mdValidation boundaries — fail fast, at the edge, once134

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.