Coverage for pgsql_upserter / exceptions.py: 100.00%
10 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-26 18:15 -0300
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-26 18:15 -0300
1"""Custom exceptions for pgsql_upserter package."""
4class PgsqlUpserterError(Exception):
5 """Base exception for all pgsql_upserter errors."""
6 pass
9class ConnectionError(PgsqlUpserterError):
10 """Raised when database connection fails."""
11 pass
14class PermissionError(PgsqlUpserterError):
15 """Raised when user lacks required database permissions."""
16 pass
19class TableNotFoundError(PgsqlUpserterError):
20 """Raised when target table doesn't exist."""
21 pass
24class SchemaIntrospectionError(PgsqlUpserterError):
25 """Raised when table schema cannot be introspected."""
26 pass