Repository navigation
refactor: Rework database exception hierarchy - #5571
Merged
Crazelu merged 21 commits intoAug 21, 2026
Merged
Conversation
Crazelu
marked this pull request as ready for review
August 10, 2026 20:47
FXschwartz
requested changes
Aug 12, 2026
FXschwartz
left a comment
Collaborator
There was a problem hiding this comment.
Just a couple of comments and one general question:
The breaking changes section lists insert/update/delete, but DatabaseUpsertRowException is removed too, would it be worth adding since it was also part of the public API?
marcelomendoncasoares
requested changes
Aug 12, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
Few more suggestions for discussion to make the exception more specific on some paths.
Crazelu
force-pushed
the
refactor/database-exception-hierarchy
branch
2 times, most recently
from
August 19, 2026 12:19
aa413ce to
f98614d
Compare
…Exception from ServerpodClientException base
…Exception from sealed chain
FXschwartz
approved these changes
Aug 19, 2026
FXschwartz
left a comment
Collaborator
There was a problem hiding this comment.
All my feedback has been addressed! Approved pending Marcelo's comments.
…ViolationException
Crazelu
force-pushed
the
refactor/database-exception-hierarchy
branch
from
August 19, 2026 20:07
f98614d to
48b3942
Compare
Collaborator
Author
|
@marcelomendoncasoares I've introduced |
marcelomendoncasoares
requested changes
Aug 20, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
Only a few more suggestions and we're good to go.
…azelu/serverpod into refactor/database-exception-hierarchy
1 task
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR allows
DatabaseException(andDatabaseQueryException) to be extendable from outside the Serverpod library. Specialized exceptions for insert, update and delete are replaced by the genericDatabaseException.Stacked on #5560
Closes #3283
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.Breaking changes
DatabaseInsertRowException,DatabaseUpdateRowExceptionandDatabaseDeleteRowExceptionimplementations have been replaced withDatabaseException.