Skip to content

Commit 2659cb3

Browse files
robsdedudeMaxAake
andauthored
Neo4jError and ClientError deprecations and small adjustments (#1179)
Slightly change `Neo4jError` and `ClientError`: - Properties `message` and `code` are always a `str` (instead of `str | None`). - Remove possibility to override/set `message` and `code` properties. - Remove undocumented, internal methods `Neo4jError.hydrate`, `Neo4jError.invalidates_all_connections`, and `Neo4jError.is_fatal_during_discovery`. - Remove deprecated method `Neo4jError.is_retriable`. Use `Neo4jError.is_retryable` instead. - Change string representation of `Neo4jError` to include GQL error information. Signed-off-by: Rouven Bauer <rouven.bauer@neo4j.com> Co-authored-by: MaxAake <61233757+MaxAake@users.noreply.github.com>
1 parent 66ff306 commit 2659cb3

File tree

3 files changed

+328
-264
lines changed

3 files changed

+328
-264
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog.
5252
errors.
5353
- It is now the same error raised as when trying to start an explicit transaction while another explicit transaction
5454
is already active.
55+
- Slightly change `Neo4jError` and `ClientError`:
56+
- Properties `message` and `code` are always a `str` (instead of `str | None`).
57+
- Remove possibility to override/set `message` and `code` properties.
58+
- Remove undocumented, internal methods `Neo4jError.hydrate`, `Neo4jError.invalidates_all_connections`,
59+
and `Neo4jError.is_fatal_during_discovery`.
60+
- Remove deprecated method `Neo4jError.is_retriable`.
61+
Use `Neo4jError.is_retryable` instead.
62+
- Change string representation of `Neo4jError` to include GQL error information.
5563
- Remove deprecated `Record.__getslice__`. This magic method has been removed in Python 3.0.
5664
If you were calling it directly, please use `Record.__getitem__(slice(...))` or simply `record[...]` instead.
5765
- Remove deprecated class `neo4j.Bookmark` in favor of `neo4j.Bookmarks`.
@@ -81,6 +89,7 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog.
8189
- Raise `ConfigurationError` instead of ignoring the routing context (URI query parameters) when creating a direct
8290
driver ("bolt[+s[sc]]://" scheme).
8391

92+
8493
## Version 5.28
8594
- Since the types of `Relationship`s are tied to the `Graph` object they belong to, fixing `pickle` support for graph types means that `Relationship`s with the same name will have a different type after `deepcopy`ing or pickling and unpickling them or their graph.
8695
For more details, see https://github.com/neo4j/neo4j-python-driver/pull/1133

0 commit comments

Comments
 (0)