Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit b1ac9aa

Browse files
authored
docs: specify how Commit(mutator, ...) handles exceptions (#1198)
1 parent 90043e2 commit b1ac9aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/cloud/spanner/client.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ class Client {
453453
* @param rerun_policy controls for how long (or how many times) the mutator
454454
* will be rerun after the transaction aborts.
455455
* @param backoff_policy controls how long `Commit` waits between reruns.
456+
*
457+
* @throw Rethrows any exception thrown by @p `mutator` (after rolling back
458+
* the transaction).
456459
*/
457460
StatusOr<CommitResult> Commit(
458461
std::function<StatusOr<Mutations>(Transaction)> const& mutator,

0 commit comments

Comments
 (0)