Result Vs Exceptions

Code review guide for choosing between Result types and thrown exceptions. Recoverable, expected failures should be returned as Result values; only unrecoverable bugs and broken invariants should throw. Use when reviewing code that introduces a new error class, a new `throw`, a new `try/catch`, or a function whose failure path the caller is expected to handle.

posthog 88b8bc5 5.5 KB Updated

File contents

posthog/posthog-definitions/tree/main/.claude/skills/result-vs-exceptions commit 88b8bc546c

Frequently asked questions

npx skillmds@latest add posthog/result-vs-exceptions