For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Server: Errors

Factory map for all error types. Keyed by error code constant, each entry returns a pre-configured EnvError, AuthError, or PostgresPoolError complete with hint, docs, and details.

Examples

Throwing typed errors

throw Errors[MissingSupabaseURLError]()
throw Errors[MissingPublishableKeyError]('mobile', ['default', 'web'])