Skip to content
Docs

Command palette

Jump to a page or search the docs.

Changelog

errors

Stable error vocabulary: responsibilities, supported exports and extension points.

Markdown

Purpose

Client-safe codes and resolvers turn transport errors into localized messages. Server handling logs unexpected failures, scrubbed of amounts, plates, VINs and emails (log-scrub, also evlog's redact patterns), and maps known errors to oRPC responses. Auth-client helpers interpret Better Auth errors.

Public exports

SubpathTarget
../src/index.ts
./auth-client-error./src/auth-client-error.ts
./locales./src/locales/index.ts
./log-scrub./src/log-scrub.ts
./server./src/server.ts

These paths come from packages/errors/package.json. A . entry is the package root. Conditional targets distinguish platform or type resolution; consumers should import the subpath, not its source file.

How to extend

Introduce a stable code and catalog messages for an actionable new failure. Preserve its typed path across the boundary; do not display raw database/provider exception text.

Read the stable error vocabulary guide for the full flow.

Key files

Edit on GitHubDocumentation is in English.

We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience. Read our Cookie Policy and Privacy Policy.