File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -634,8 +634,8 @@ Bulk Write Exception
634
634
~~~~~~~~~~~~~~~~~~~~
635
635
636
636
The driver creates a write exception when it creates a ``WriteError`` object. If an
637
- error is detected during a bulk write operation, a `MongoBulkWriteException
638
- <{+core-api+}/MongoBulkWriteException.html>`__ is thrown .
637
+ error is detected during a bulk write operation, the driver throws a `MongoBulkWriteException
638
+ <{+core-api+}/MongoBulkWriteException.html>`__.
639
639
640
640
A ``MongoBulkWriteException`` contains a ``writeErrors`` field consisting of a
641
641
list of one or more ``WriteError`` objects associated with the same bulk write
@@ -644,7 +644,7 @@ operation.
644
644
Example
645
645
```````
646
646
647
- For example, the driver raises a ``MongoBulkWriteException`` if your bulk insert
647
+ For example, the driver throws a ``MongoBulkWriteException`` if your bulk insert
648
648
contains two documents that violate the collection's schema
649
649
validation rules. Suppose the collection has a rule where the value of the
650
650
``quantity`` field must be an ``int`` type. If your bulk insert contains a
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ Write Exception
200
200
~~~~~~~~~~~~~~~
201
201
202
202
The driver creates a write exception when it creates a ``WriteError`` object. The
203
- driver raises a `MongoWriteException <{+core-api+}/MongoWriteException.html>`__
203
+ driver throws a `MongoWriteException <{+core-api+}/MongoWriteException.html>`__
204
204
for any write errors that occur when performing single write operations.
205
205
206
206
A ``MongoWriteException`` object has an ``error`` field containing the
@@ -209,7 +209,7 @@ A ``MongoWriteException`` object has an ``error`` field containing the
209
209
Example
210
210
```````
211
211
212
- For example, the driver raises a ``MongoWriteException`` if you
212
+ For example, the driver throws a ``MongoWriteException`` if you
213
213
attempt to insert a document into a collection that violates the collection's
214
214
schema validation rules. Suppose the collection has a rule where the value of
215
215
the ``quantity`` field must be an ``int`` type. If you attempt to insert a
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Write Error
22
22
~~~~~~~~~~~
23
23
24
24
If the driver encounters an error while performing a write operation, it
25
- creates an error of the `WriteError <{+core-api+}/WriteError.html >`__ type.
25
+ creates an error object of the `WriteError <{+core-api+}/WriteError.html >`__ type.
26
26
27
27
The ``WriteError `` type contains the following fields:
28
28
You can’t perform that action at this time.
0 commit comments