Skip to content

Commit

Permalink
Reword; add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
comandeo-mongo committed Nov 15, 2023
1 parent ff68a1e commit eca77e8
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ Errors handling inside the callback
-----------------------------------

Drivers MUST document that the callback MUST NOT silently swallow errors that
do not have the "TransientTransactionError" label. Such errors abort the
transaction on the server; trying to commit aborted transaction will result in
an error.
do not have the "TransientTransactionError" label. Such errors abort
the transaction on the server; trying to commit an aborted transaction will
result in an error.

Drivers SHOULD recommend that the callback re-throw errors that do not have the
"TransientTransactionError" label or otherwise using Core Transaction API if
they want to handle errors in a custom way.
Drivers SHOULD recommend that the callback re-throw errors that do not have
the "TransientTransactionError" label. Drivers SHOULD also recommend using
Core Transaction API if a user wants to handle errors in a custom way.

Test Plan
=========
Expand Down Expand Up @@ -506,6 +506,7 @@ client-side operation timeout, withTransaction can continue to use the
Changes
=======

:2023-11-15: Document error handling inside the callback.
:2022-10-05: Remove spec front matter and reformat changelog.
:2022-01-19: withTransaction applies timeouts per the client-side operations
timeout specification.
Expand Down

0 comments on commit eca77e8

Please sign in to comment.