File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -633,16 +633,16 @@ Troubleshooting
633
633
Bulk Write Exception
634
634
~~~~~~~~~~~~~~~~~~~~
635
635
636
- The driver creates a write exception when a ``WriteError`` object is created . If an
636
+ The driver creates a write exception when it creates a ``WriteError`` object. If an
637
637
error is detected during a bulk write operation, a `MongoBulkWriteException
638
638
<{+core-api+}/MongoBulkWriteException.html>`__ is thrown.
639
639
640
- A ``MongoBulkWriteException`` contains a ``writeErrors`` field containing a list
641
- of one or more ``WriteError`` objects associated with the same bulk write
640
+ A ``MongoBulkWriteException`` contains a ``writeErrors`` field consisting of a
641
+ list of one or more ``WriteError`` objects associated with the same bulk write
642
642
operation.
643
643
644
644
Example
645
- '''''''
645
+ ```````
646
646
647
647
For example, the driver raises a ``MongoBulkWriteException`` if your bulk insert
648
648
contains two documents that violate the collection's schema
Original file line number Diff line number Diff line change @@ -199,15 +199,15 @@ Troubleshooting
199
199
Write Exception
200
200
~~~~~~~~~~~~~~~
201
201
202
- The driver creates a write exception when a ``WriteError`` object is created . The
202
+ The driver creates a write exception when it creates a ``WriteError`` object. The
203
203
driver raises a `MongoWriteException <{+core-api+}/MongoWriteException.html>`__
204
204
for any write errors that occur when performing single write operations.
205
205
206
- A ``MongoWriteException`` object contains an ``error`` field containing the
206
+ A ``MongoWriteException`` object has an ``error`` field containing the
207
207
``WriteError`` object that caused it.
208
208
209
209
Example
210
- '''''''
210
+ ```````
211
211
212
212
For example, the driver raises a ``MongoWriteException`` if you
213
213
attempt to insert a document into a collection that violates the collection's
You can’t perform that action at this time.
0 commit comments