Skip to content

Commit f0fc822

Browse files
committed
DOCSP-30350 making vocab consistent, active voice
(cherry picked from commit 2922c97)
1 parent fab3104 commit f0fc822

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

source/crud/bulk.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ Bulk Write Exception
634634
~~~~~~~~~~~~~~~~~~~~
635635

636636
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>`__.
639639

640640
A ``MongoBulkWriteException`` contains a ``writeErrors`` field consisting of a
641641
list of one or more ``WriteError`` objects associated with the same bulk write
@@ -644,7 +644,7 @@ operation.
644644
Example
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
648648
contains two documents that violate the collection's schema
649649
validation 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

source/crud/insert.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Write Exception
200200
~~~~~~~~~~~~~~~
201201

202202
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>`__
204204
for any write errors that occur when performing single write operations.
205205

206206
A ``MongoWriteException`` object has an ``error`` field containing the
@@ -209,7 +209,7 @@ A ``MongoWriteException`` object has an ``error`` field containing the
209209
Example
210210
```````
211211

212-
For example, the driver raises a ``MongoWriteException`` if you
212+
For example, the driver throws a ``MongoWriteException`` if you
213213
attempt to insert a document into a collection that violates the collection's
214214
schema validation rules. Suppose the collection has a rule where the value of
215215
the ``quantity`` field must be an ``int`` type. If you attempt to insert a

source/includes/crud/write-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Write Error
2222
~~~~~~~~~~~
2323

2424
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.
2626

2727
The ``WriteError`` type contains the following fields:
2828

0 commit comments

Comments
 (0)