Skip to content

Commit 9df2a4f

Browse files
authored
(DOCSP-45749) Updates nested important admonitions to unnest (#343) (#357)
1 parent ae50a97 commit 9df2a4f

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

source/fundamentals/transactions.txt

+15-18
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,14 @@ tabs to learn about the methods to manage your transaction:
103103
learn more about this method, see the :manual:`withTransaction() page
104104
</reference/method/Session.withTransaction/>` in the Server manual.
105105

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

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

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

175172
|
176173
| **Parameters**: ``Func <IClientSessionHandle, CancellationToken, Task<TResult>>``, ``TransactionOptions``, ``CancellationToken``

0 commit comments

Comments
 (0)