Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/neo4j/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,12 @@ def is_retryable(self) -> bool:
retry. This method makes mostly sense when implementing a custom
retry policy in conjunction with :ref:`explicit-transactions-ref`.

.. warning::

Auto-commit transactions
(:meth:`.Session.run`/:meth:`.AsyncSession.run`) are not retryable
regardless of this value.

:returns: :data:`True` if the error is retryable,
:data:`False` otherwise.

Expand Down Expand Up @@ -818,6 +824,12 @@ def is_retryable(self) -> bool:
retry. This method makes mostly sense when implementing a custom
retry policy in conjunction with :ref:`explicit-transactions-ref`.

.. warning::

Auto-commit transactions
(:meth:`.Session.run`/:meth:`.AsyncSession.run`) are not retryable
regardless of this value.

:returns: :data:`True` if the error is retryable,
:data:`False` otherwise.

Expand Down