Skip to content

Commit f880d19

Browse files
committed
CDRIVER-901 document bulk write error domains
1 parent 5ea44ed commit f880d19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/bulk.page

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"writeConcernErrors" : [] }
7575

7676
Error: E11000 duplicate key error index: test.test.$_id_ dup key: { : 1 }]]></code></synopsis>
77+
<p>The <code xref="bson:bson_error_t">bson_error_t</code> domain is <code>MONGOC_ERROR_COMMAND</code> and its code is 11000. </p>
7778
</section>
7879

7980
<section id="bulk-write-concern">
@@ -94,6 +95,7 @@ Error: E11000 duplicate key error index: test.test.$_id_ dup key: { : 1 }]]></co
9495
] }
9596

9697
Error: waiting for replication timed out]]></code></synopsis>
98+
<p>The <code xref="bson:bson_error_t">bson_error_t</code> domain is <code>MONGOC_ERROR_WRITE_CONCERN</code> if there are write concern errors and no write errors. Write errors indicate failed operations, so they take precedence over write concern errors, which mean merely that the write concern is not satisfied <em>yet</em>.</p>
9799
</section>
98100

99101
<section id="bulk-spec">

0 commit comments

Comments
 (0)