Skip to content

Commit caedb40

Browse files
committed
wip
1 parent 3cc5732 commit caedb40

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/includes/extracts-error.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ref: error-invalidargumentexception
2+
content: |
3+
:phpclass:`MongoDB\\Exception\\InvalidArgumentException` for errors related to
4+
the parsing of parameters or options.
5+
---
6+
ref: error-driver-runtimeexception
7+
content: |
8+
:php:`MongoDB\\Driver\\Exception\\RuntimeException
9+
<mongodb-driver-exception-runtimeexception>` for other errors at the driver
10+
level (e.g. connection errors).
11+
---
12+
ref: error-unsupportedexception-writeconcern
13+
content: |
14+
:phpclass:`MongoDB\\Exception\\UnsupportedException` if the ``writeConcern``
15+
option is used and is not supported by the selected server.
16+
...

docs/reference/method/MongoDBClient-dropDatabase.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ An array or object with the result document of the :manual:`dropDatabase
3636
</reference/command/dropDatabase>` command. The return type will depend on the
3737
``typeMap`` option.
3838

39+
Errors/Exceptions
40+
-----------------
41+
42+
.. include:: /includes/extracts/error-unsupportedexception-writeconcern.rst
43+
.. include:: /includes/extracts/error-invalidargumentexception.rst
44+
.. include:: /includes/extracts/error-driver-runtimeexception.rst
45+
3946
Example
4047
-------
4148

0 commit comments

Comments
 (0)