|
51 | 51 | + RoutingServiceUnavailable |
52 | 52 | + WriteServiceUnavailable |
53 | 53 | + ReadServiceUnavailable |
54 | | - + UnsupportedServerProduct |
55 | 54 | + IncompleteCommit |
56 | 55 | + ConfigurationError |
57 | 56 | + AuthConfigurationError |
58 | 57 | + CertificateConfigurationError |
| 58 | + + UnsupportedServerProduct |
59 | 59 | + ConnectionPoolError |
60 | 60 | + ConnectionAcquisitionTimeoutError |
61 | 61 | """ |
@@ -1028,20 +1028,6 @@ class ReadServiceUnavailable(ServiceUnavailable): |
1028 | 1028 | """Raised when no read service is available.""" |
1029 | 1029 |
|
1030 | 1030 |
|
1031 | | -# DriverError > ServiceUnavailable > UnsupportedServerProduct |
1032 | | -class UnsupportedServerProduct(ServiceUnavailable): |
1033 | | - """ |
1034 | | - Raised when an unsupported server product is detected. |
1035 | | -
|
1036 | | - .. versionchanged:: 6.0 |
1037 | | - This exception is now a subclass of :class:`ServiceUnavailable`. |
1038 | | - Before it was a subclass of :class:`Exception`. |
1039 | | - """ |
1040 | | - |
1041 | | - def __init__(self, *args: object) -> None: |
1042 | | - super().__init__(*args) |
1043 | | - |
1044 | | - |
1045 | 1031 | # DriverError > ServiceUnavailable > IncompleteCommit |
1046 | 1032 | class IncompleteCommit(ServiceUnavailable): |
1047 | 1033 | """ |
@@ -1085,6 +1071,20 @@ class CertificateConfigurationError(ConfigurationError): |
1085 | 1071 | """Raised when there is an error with the certificate configuration.""" |
1086 | 1072 |
|
1087 | 1073 |
|
| 1074 | +# DriverError > ConfigurationError > UnsupportedServerProduct |
| 1075 | +class UnsupportedServerProduct(ConfigurationError): |
| 1076 | + """ |
| 1077 | + Raised when an unsupported server product is detected. |
| 1078 | +
|
| 1079 | + .. versionchanged:: 6.0 |
| 1080 | + This exception is now a subclass of :class:`ConfigurationError`. |
| 1081 | + Before it was a subclass of :class:`Exception`. |
| 1082 | + """ |
| 1083 | + |
| 1084 | + def __init__(self, *args: object) -> None: |
| 1085 | + super().__init__(*args) |
| 1086 | + |
| 1087 | + |
1088 | 1088 | # DriverError > ConnectionPoolError |
1089 | 1089 | class ConnectionPoolError(DriverError): |
1090 | 1090 | """Raised when the connection pool encounters an error.""" |
|
0 commit comments