Skip to content

(DOCSP-45749) Updates nested important admonitions to denest #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2024
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
33 changes: 15 additions & 18 deletions source/fundamentals/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,14 @@ tabs to learn about the methods to manage your transaction:
learn more about this method, see the :manual:`withTransaction() page
</reference/method/Session.withTransaction/>` in the Server manual.

.. important:: Handling Exceptions

When catching exceptions within the callback function used by
``WithTransaction()``, you **must** rethrow the exception before
exiting the try-catch block. Failing to do so can result in an
infinite loop. For further details on how to handle exceptions in this
case, see :manual:`Transactions </core/transactions/>` in the Server
manual and select :guilabel:`C#` from the language dropdown to view
the example.
:gold:`IMPORTANT:` When catching exceptions within the
callback function used by
``WithTransaction()``, you **must** rethrow the exception before
exiting the try-catch block. Failing to do so can result in an
infinite loop. For further details on how to handle exceptions in this
case, see :manual:`Transactions </core/transactions/>` in the Server
manual and select :guilabel:`C#` from the language dropdown to view
the example.

|
| **Parameters**: ``Func <IClientSessionHandle, CancellationToken, Task<TResult>>``, ``TransactionOptions``, ``CancellationToken``
Expand Down Expand Up @@ -162,15 +161,13 @@ tabs to learn about the methods to manage your transaction:
learn more about this method, see the :manual:`withTransaction() page
</reference/method/Session.withTransaction/>` in the Server manual.

.. important:: Handling Exceptions

When catching exceptions within the callback function used by
``WithTransactionAsync()``, you **must** rethrow the exception
before exiting the try-catch block. Failing to do so can result in an
infinite loop. For further details on how to handle exceptions in this
case, see :manual:`Transactions </core/transactions/>` in the Server
manual and select :guilabel:`C#` from the language dropdown to view
the example.
:gold:`IMPORTANT:` When catching exceptions within the callback function used by
``WithTransactionAsync()``, you **must** rethrow the exception
before exiting the try-catch block. Failing to do so can result in an
infinite loop. For further details on how to handle exceptions in this
case, see :manual:`Transactions </core/transactions/>` in the Server
manual and select :guilabel:`C#` from the language dropdown to view
the example.

|
| **Parameters**: ``Func <IClientSessionHandle, CancellationToken, Task<TResult>>``, ``TransactionOptions``, ``CancellationToken``
Expand Down
Loading