You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:description: Understand how to handle operation errors in the MongoDB Java Sync Driver, including error types like WriteErrror and ConnectionPoolCleared.
8
+
:description: Understand how to handle write exceptions in the MongoDB Java Sync Driver, including error types like WriteError and BulkWriteError.
9
9
10
10
.. contents::
11
11
:local:
@@ -16,14 +16,14 @@ Troubleshooting Write Errors
16
16
Overview
17
17
--------
18
18
19
-
This page describes write errors you might encounter when
19
+
This page describes write exceptions you might encounter when
20
20
using the {+driver-long+} to perform MongoDB write operations. Once you
21
-
understand the types of write operation errors that the driver raises, you can take
21
+
understand the types of write exceptions that the driver raises, you can take
22
22
appropriate actions to either handle them or correct the error-causing code.
23
23
24
24
.. note::
25
25
26
-
This page addresses only write operation error handling. If you encounter
26
+
This page addresses only write exception handling. If you encounter
27
27
any other issues with MongoDB or the driver, visit the following
28
28
resources:
29
29
@@ -34,42 +34,29 @@ appropriate actions to either handle them or correct the error-causing code.
34
34
- :community-forum:`MongoDB Community Forums </tag/java>` for questions,
35
35
discussions, or general technical support
36
36
37
-
Write Error Types
38
-
-----------------
37
+
Write Error
38
+
-----------
39
39
40
40
If the driver encounters an error while performing a write operation, it
41
-
returns an error of the `WriteError <{+core-api+}/WriteError.html>`__ type.
42
-
43
-
The ``WriteError`` type contains the following methods:
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
48
-
error, which may be empty
49
-
- ``getCategory``: returns the category of the write error as an
0 commit comments