@@ -27,8 +27,8 @@ appropriate actions to either handle them or correct the error-causing code.
27
27
any other issues with MongoDB or the driver, visit the following
28
28
resources:
29
29
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
32
32
- :ref:`java-issues-and-help` page for information about reporting bugs,
33
33
contributing to the driver, and finding more resources
34
34
- :community-forum:`MongoDB Community Forums </tag/java>` for questions,
@@ -42,21 +42,17 @@ returns an error of the `WriteError <{+core-api+}/WriteError.html>`__ type.
42
42
43
43
The ``WriteError`` type contains the following methods:
44
44
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
48
48
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.
52
51
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
58
53
``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.
60
56
61
57
Write Error
62
58
~~~~~~~~~~~
0 commit comments