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
634634~~~~~~~~~~~~~~~~~~~~
635635
636636The 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>`__.
639639
640640A ``MongoBulkWriteException`` contains a ``writeErrors`` field consisting of a
641641list of one or more ``WriteError`` objects associated with the same bulk write
@@ -644,7 +644,7 @@ operation.
644644Example
645645```````
646646
647- For example, the driver raises a ``MongoBulkWriteException`` if your bulk insert
647+ For example, the driver throws a ``MongoBulkWriteException`` if your bulk insert
648648contains two documents that violate the collection's schema
649649validation rules. Suppose the collection has a rule where the value of the
650650``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
200200~~~~~~~~~~~~~~~
201201
202202The 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>`__
204204for any write errors that occur when performing single write operations.
205205
206206A ``MongoWriteException`` object has an ``error`` field containing the
@@ -209,7 +209,7 @@ A ``MongoWriteException`` object has an ``error`` field containing the
209209Example
210210```````
211211
212- For example, the driver raises a ``MongoWriteException`` if you
212+ For example, the driver throws a ``MongoWriteException`` if you
213213attempt to insert a document into a collection that violates the collection's
214214schema validation rules. Suppose the collection has a rule where the value of
215215the ``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
2222~~~~~~~~~~~
2323
2424If 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.
2626
2727The ``WriteError `` type contains the following fields:
2828
You can’t perform that action at this time.
0 commit comments