Skip to content

Commit 51772d1

Browse files
committed
DOCSP-30350 add to toc tree and fix links
1 parent 7de199d commit 51772d1

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

source/crud.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ CRUD Operations
3232
- :ref:`Collations <java-crud-collations>`
3333
- :ref:`Large File Storage with GridFS <java-crud-gridfs>`
3434
- :ref:`Configure Custom CRUD Settings <java-configure-custom-crud>`
35+
- :ref:`Write Operation Error Handling <java-operation-errors>`

source/operation-error-handling.txt

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ appropriate actions to either handle them or correct the error-causing code.
2727
any other issues with MongoDB or the driver, visit the following
2828
resources:
2929

30-
- :ref:`java-connection-troubleshooting` for potential solutions to
31-
issues you might encounter when connecting to a MongoDB deployment
30+
- :ref:`java-connection-troubleshooting` for potential solutions to issues
31+
you might encounter when connecting to a MongoDB deployment
3232
- :ref:`java-issues-and-help` page for information about reporting bugs,
3333
contributing to the driver, and finding more resources
3434
- :community-forum:`MongoDB Community Forums </tag/java>` for questions,
@@ -42,21 +42,17 @@ returns an error of the `WriteError <{+core-api+}/WriteError.html>`__ type.
4242

4343
The ``WriteError`` type contains the following methods:
4444

45-
- ``getCode``: returns the code associated with this error.
46-
- ``getMessage``: returns the message associated with this error.
47-
- ``getDetails``: returns a BSON Document with details associated with this
45+
- `getCode <{+core-api+}/WriteError.html#getCode()>`__: returns the code associated with this error.
46+
- `getMessage <{+core-api+}/WriteError.html#getMessage()>`__: returns the message associated with this error.
47+
- `getDetails <{+core-api+}/WriteError.html#getDetails()>`__: returns a BSON Document with details associated with this
4848
error, which may be empty.
49-
- ``getCategory``: returns the category of the write error as an
50-
`ErrorCategory<{+core-api+}/ErrorCategory.html>`__ object. The
51-
enum ``ErrorCategory`` can be one of the following options:
49+
- `getCategory <{+core-api+}/WriteError.html#getCategory()>`__: returns the category of the write error as an
50+
`ErrorCategory <{+core-api+}/ErrorCategory.html>`__ object.
5251

53-
- ``DUPLICATE_KEY``: you provided duplicate key to a method
54-
- ``EXECUTION_TIMEOUT``: the driver timed out
55-
- ``UNCATEGORIZED``: the error has no category
56-
57-
The `BulkWriteError<{+core-api+}/bulk/BulkWriteError.html>`__ type extends
52+
The `BulkWriteError <{+core-api+}/bulk/BulkWriteError.html>`__ type extends
5853
``WriteError`` and inherits the above methods. The `WriteConcernError
59-
<{+core-api+}/bulk/WriteConcernError.html>`__ is not related to the ``WriteError`` type.
54+
<{+core-api+}/bulk/WriteConcernError.html>`__ is not related to the
55+
``WriteError`` type and details errors relating to the write concern.
6056

6157
Write Error
6258
~~~~~~~~~~~

0 commit comments

Comments
 (0)