@@ -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
4343The ``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
6157Write Error
6258~~~~~~~~~~~
0 commit comments