You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat!: name every error class *Error with one casing - #2203
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
New Features
Introduced consistent, service-specific names for errors across Auth, Functions, PostgREST, Realtime, Storage, and Supabase clients.
Added distinct error types for PostgREST errors, client configuration issues, and request timeouts.
Documentation
Updated migration guidance, examples, and API references to use the current error names.
The PR updates public error names and exports across Auth, Functions, PostgREST, Realtime, Storage, and the Supabase client. It updates error construction and handling references, migration guidance, examples, SDK compliance notes, and tests to use the revised names. The PostgREST package adds a PostgrestError root, and PostgrestAPIError inherits from it and SupabaseAPIError. Existing error conditions and handling are generally retained.
Possibly related PRs
supabase/supabase-py#2018: Updates shared error hierarchies and PostgREST, Realtime, and timeout error types that this PR also renames.
supabase/supabase-py#1998: Changes SupabaseException, which this PR renames to SupabaseClientError, and updates the Supabase public API exports.
Change: Refactor
Merge Risk: Minimal · up to 6712b
This is a breaking rename of public error classes, documented in the migration guide. No concrete defect was identified. The failing Python 3.14 auth CI check should be confirmed as unrelated or fixed before merge.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the error classes so every one ends in
Error, starts with its package name and capitalizes acronyms. SDK-3374SupabaseException→SupabaseClientError,StorageException→StorageError,VectorBucketException→StorageVectorBucketErrorAuthAPIError,AuthInvalidJWTError,StorageAPIError,FunctionsHTTPError,AuthUserDoesNotExistErrorPostgrestErrorroot,APIError→PostgrestAPIError, re-exported bysupabasewithout an aliasRealtimeprefix,ResumableUpload*ErrortheStorageprefix,RequestTimeoutError→SupabaseRequestTimeoutError