11class RustPSQLDriverPyBaseError (Exception ):
22 """Base PSQL-Rust-Engine exception."""
33
4- class DBPoolError (RustPSQLDriverPyBaseError ):
5- """Error if something goes wrong with Database Pool.
4+ class BaseConnectionPoolError (RustPSQLDriverPyBaseError ):
5+ """Base error for all Connection Pool errors."""
66
7- It has verbose error message.
8- """
7+ class ConnectionPoolBuildError (BaseConnectionPoolError ):
8+ """Error for errors in building connection pool."""
9+
10+ class ConnectionPoolConfigurationError (BaseConnectionPoolError ):
11+ """Error in connection pool configuration."""
12+
13+ class ConnectionPoolExecuteError (BaseConnectionPoolError ):
14+ """Error in connection pool execution."""
15+
16+ class DBPoolConfigurationError (RustPSQLDriverPyBaseError ):
17+ """Error if configuration of the database pool is unacceptable."""
18+
19+ class BaseConnectionError (RustPSQLDriverPyBaseError ):
20+ """Base error for Connection errors."""
21+
22+ class ConnectionExecuteError (BaseConnectionError ):
23+ """Error in connection execution."""
24+
25+ class BaseTransactionError (RustPSQLDriverPyBaseError ):
26+ """Base error for all transaction errors."""
27+
28+ class TransactionBeginError (BaseTransactionError ):
29+ """Error in transaction begin."""
30+
31+ class TransactionCommitError (BaseTransactionError ):
32+ """Error in transaction commit."""
33+
34+ class TransactionRollbackError (BaseTransactionError ):
35+ """Error in transaction rollback."""
36+
37+ class TransactionSavepointError (BaseTransactionError ):
38+ """Error in transaction savepoint."""
39+
40+ class TransactionExecuteError (BaseTransactionError ):
41+ """Error in transaction execution."""
42+
43+ class BaseCursorError (RustPSQLDriverPyBaseError ):
44+ """Base error for Cursor errors."""
45+
46+ class CursorStartError (BaseCursorError ):
47+ """Error in cursor declare."""
48+
49+ class CursorCloseError (BaseCursorError ):
50+ """Error in cursor close."""
51+
52+ class CursorFetchError (BaseCursorError ):
53+ """Error in cursor fetch (any fetch)."""
54+
55+ class UUIDValueConvertError (RustPSQLDriverPyBaseError ):
56+ """Error if it's impossible to convert py string UUID into rust UUID."""
57+
58+ class MacAddr6ConversionError (RustPSQLDriverPyBaseError ):
59+ """Error if cannot convert MacAddr6 string value to rust type."""
960
1061class RustToPyValueMappingError (RustPSQLDriverPyBaseError ):
1162 """Error if it is not possible to covert rust type to python.
@@ -22,21 +73,3 @@ class PyToRustValueMappingError(RustPSQLDriverPyBaseError):
2273 You can get this exception when executing queries with parameters.
2374 So, if there are no parameters for the query, don't handle this error.
2475 """
25-
26- class TransactionError (RustPSQLDriverPyBaseError ):
27- """Error if something goes wrong with `Transaction`.
28-
29- It has verbose error message.
30- """
31-
32- class DBPoolConfigurationError (RustPSQLDriverPyBaseError ):
33- """Error if configuration of the database pool is unacceptable."""
34-
35- class UUIDValueConvertError (RustPSQLDriverPyBaseError ):
36- """Error if it's impossible to convert py string UUID into rust UUID."""
37-
38- class CursorError (RustPSQLDriverPyBaseError ):
39- """Error if something goes wrong with the cursor."""
40-
41- class MacAddr6ConversionError (RustPSQLDriverPyBaseError ):
42- """Error if cannot convert MacAddr6 string value to rust type."""
0 commit comments