Postponed
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2026 at 09:19 UTC
Updated:
8 Oct 2026 at 09:19 UTC
Jump to comment: Most recent
Spin off from #3622582: Cleanup database exceptions.
Database exception classes are scattered across multiple namespaces/folders and that is a bit confusing.
Also, DatabaseExceptionWrapper is a bit too generic in name, as it and its descendants in fact are triggered once the lower level database client has to return errors to callers, and that's specific of the roundtrip of SQL statements between Drupal and its underlying db layer.
Exception namespace. For BC, keep the original classes as aliases in the old location for a major's cycleDatabaseExceptionWrapper to ClientConnectionException, with the same BC logic.
Comments