lib/core/database/postgres_connection.dart declares PostgresConnectionException, but connect() and other methods only rethrow raw driver exceptions.
Impact: No consistent exception type for callers to catch or classify; UI and telemetry cannot distinguish between SSL, auth, network, and query errors at the connection layer.
Expected: Wrap connection-level failures in PostgresConnectionException with a categorized cause or original exception attached.
Acceptance criteria:
lib/core/database/postgres_connection.dartdeclaresPostgresConnectionException, butconnect()and other methods only rethrow raw driver exceptions.Impact: No consistent exception type for callers to catch or classify; UI and telemetry cannot distinguish between SSL, auth, network, and query errors at the connection layer.
Expected: Wrap connection-level failures in
PostgresConnectionExceptionwith a categorized cause or original exception attached.Acceptance criteria:
PostgresConnectionExceptionfromconnect()andtestConnection()on failure.