-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Component/s: None
There are other fields besides "err" and "code" that have useful information, and more are being added. Clients that log exceptions thrown due to GLE errors should contain all of it.
The easiest solution for this ticket, for drivers that support exceptions, is to add the error document from the server as an attribute of the exception.
Furthermore, a WTimeoutError exception is useful for differentiating errors due to wtimeout expiring from operation failures. Newer versions of MongoDB return the fields 'n', 'updatedExisting', and 'writtenTo' in this case.
- depends on
-
CDRIVER-496 Exceptions thrown for GLE should contain the entire GLE document
- Closed
-
CXX-460 Exceptions throws for GLE should contain the entire GLE document
- Closed
-
JAVA-757 Exceptions throws for GLE should contain the entire GLE document
- Closed
-
PYTHON-576 OperationFailure and subclasses should include the error details
- Closed