Commit fdd0701
authored
4.0 exception hierarchy (#350)
* Changed CypherError to Neo4jError
* Removed unused error.
* Neo4jAvailabilityError renamed to BoltNeo4jAvailabilityError
* Removed NotALeader and use NotALeaderError
* Removed ForbiddenOnReadOnlyDatabase
Using ForbiddenOnReadOnlyDatabaseError instead
* Divided Driver API Errors and Connector API Errors
The Driver API Errors can be found in exceptions.py
The Connector API Errors can be found in errors.py
* Added DriverError Group
SessionExpired(DriverError)
TransactionError(DriverError)
ServiceUnavailable(DriverError)
* SecurityError is replaced by BoltSecurityError
Driver API ClientErrors does not inherit SecurityError and SecurityError
is removed from the Driver API Errors.
* IncompleteCommitError is replaced with BoltIncompleteCommitError
* ProtocolError is replaced with BoltProtocolError
* Removed BoltNeo4jAvailabilityError
Added ServiceUnavailable errors that replace BoltNeo4jAvailabilityError
errors.
from neo4j.exceptions import (
RoutingServiceUnavailable,
ReadServiceUnavailable,
WriteServiceUnavailable,
)
* Added docs info about internal driver errors
It's important to leave a note in here as a catch-all.
If users see an internal error, in particular a protocol error, they should open an issue.
* Renamed errors.py to _exceptions.py
The BoltError are internal errors that the user should never experience.
* Changed NotALeaderError to NotALeader
To align with the naming of the status code
Neo.ClientError.Cluster.NotALeader
* Renamed DatabaseUnavailableError to DatabaseUnavailable
This is to align with the naming of status code:
Neo.TransientError.General.DatabaseUnavailable
* Renamed ForbiddenOnReadOnlyDatabaseError to ForbiddenOnReadOnlyDatabase
This is to align with the status code:
Neo.ClientError.General.ForbiddenOnReadOnlyDatabase1 parent 2f5d58c commit fdd0701
File tree
17 files changed
+202
-191
lines changed- docs/source
- neo4j
- aio
- io
- work
- tests
- integration
- aio
- examples
- stub
- aio
17 files changed
+202
-191
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | | - | |
| 21 | + | |
26 | 22 | | |
27 | | - | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 177 | | |
184 | 178 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
401 | | - | |
| 405 | + | |
402 | 406 | | |
403 | 407 | | |
404 | 408 | | |
| |||
817 | 821 | | |
818 | 822 | | |
819 | 823 | | |
820 | | - | |
| 824 | + | |
821 | 825 | | |
822 | 826 | | |
823 | 827 | | |
| |||
855 | 859 | | |
856 | 860 | | |
857 | 861 | | |
858 | | - | |
859 | | - | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
860 | 866 | | |
861 | 867 | | |
862 | 868 | | |
| |||
878 | 884 | | |
879 | 885 | | |
880 | 886 | | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
| 887 | + | |
885 | 888 | | |
886 | 889 | | |
887 | 890 | | |
| |||
890 | 893 | | |
891 | 894 | | |
892 | 895 | | |
893 | | - | |
894 | | - | |
| 896 | + | |
| 897 | + | |
895 | 898 | | |
896 | 899 | | |
897 | 900 | | |
| |||
905 | 908 | | |
906 | 909 | | |
907 | 910 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
615 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
616 | 619 | | |
617 | 620 | | |
618 | 621 | | |
| |||
0 commit comments