@@ -103,15 +103,14 @@ tabs to learn about the methods to manage your transaction:
103
103
learn more about this method, see the :manual:`withTransaction() page
104
104
</reference/method/Session.withTransaction/>` in the Server manual.
105
105
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.
115
114
116
115
|
117
116
| **Parameters**: ``Func <IClientSessionHandle, CancellationToken, Task<TResult>>``, ``TransactionOptions``, ``CancellationToken``
@@ -162,15 +161,13 @@ tabs to learn about the methods to manage your transaction:
162
161
learn more about this method, see the :manual:`withTransaction() page
163
162
</reference/method/Session.withTransaction/>` in the Server manual.
164
163
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.
174
171
175
172
|
176
173
| **Parameters**: ``Func <IClientSessionHandle, CancellationToken, Task<TResult>>``, ``TransactionOptions``, ``CancellationToken``
0 commit comments