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

1"""Custom exceptions for pgsql_upserter package.""" 

2 

3 

4class PgsqlUpserterError(Exception): 

5 """Base exception for all pgsql_upserter errors.""" 

6 pass 

7 

8 

9class ConnectionError(PgsqlUpserterError): 

10 """Raised when database connection fails.""" 

11 pass 

12 

13 

14class PermissionError(PgsqlUpserterError): 

15 """Raised when user lacks required database permissions.""" 

16 pass 

17 

18 

19class TableNotFoundError(PgsqlUpserterError): 

20 """Raised when target table doesn't exist.""" 

21 pass 

22 

23 

24class SchemaIntrospectionError(PgsqlUpserterError): 

25 """Raised when table schema cannot be introspected.""" 

26 pass