[DRIVERS-75] Exceptions throws for GLE should contain the entire GLE document Created: 12/Feb/13  Updated: 15/Apr/19  Resolved: 23/Apr/15

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: 3.0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-496 Exceptions thrown for GLE should cont... Closed
depends on CXX-460 Exceptions throws for GLE should cont... Closed
depends on JAVA-757 Exceptions throws for GLE should cont... Closed
depends on PYTHON-576 OperationFailure and subclasses shoul... Closed
Driver Compliance:
Key Status/Resolution FixVersion
JAVA-757 Done 2.11.0
PHP-708 Done 1.5.0, 1.5.0alpha1
PYTHON-576 Done 2.7
CXX-460 Done 0.1.0
CDRIVER-496 Done

 Description   

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.


Generated at Thu Feb 08 08:20:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.