We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7c4b3 commit f1e7dc1Copy full SHA for f1e7dc1
neo4j/v1/bolt.py
@@ -193,6 +193,8 @@ class BoltStatementResult(StatementResult):
193
""" A handler for the result of Cypher statement execution.
194
"""
195
196
+ error_class = CypherError
197
+
198
value_system = GraphDatabase.value_systems["packstream"]
199
200
zipper = Record
@@ -217,7 +219,7 @@ def on_failure(metadata):
217
219
# Called on execution failure.
218
220
self._session.connection.acknowledge_failure()
221
self._session = None
- raise CypherError(metadata)
222
+ raise self.error_class(metadata)
223
224
run_response.on_success = on_header
225
run_response.on_failure = on_failure
0 commit comments