Errors

Design and throw errors that self-explain, so debugging from a log line is possible without rerunning the code. Every error carries a stable code, a human message, the cause chain, and (for API errors) an HTTP status. Distinguishes expected errors (validation, auth, not-found) from unexpected (bugs, infra down). Pairs with the `logging` skill — errors get logged with full context by the global handler. Use when adding a new error type, refactoring error handling, deciding whether to throw / return / wrap, writing an API route, or reviewing code for error discipline. Do not build a taxonomy for one endpoint — YAGNI applies.

muzalee fd63687 8.5 KB Updated

File contents

muzalee/claude-atelier/tree/main/plugins/atelier/skills/errors commit fd63687294

Frequently asked questions

npx skillmds@latest add muzalee/errors