Exceptions throws for GLE should contain the entire GLE document (CXX-460)

[CXX-478] Check legacy C++ driver Exceptions container entire GLE document Created: 13/Jan/15  Updated: 23/Jan/15  Resolved: 14/Jan/15

Status: Closed
Project: C++ Driver
Component/s: API, Implementation
Affects Version/s: legacy-1.0.0-rc3
Fix Version/s: legacy-1.0.0-rc4

Type: Sub-task Priority: Major - P3
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Tyler Brock [ 14/Jan/15 ]

The legacy C++ driver fully conforms in this regard.

When OperationExceptions are thrown there is an obj() method available to get the entire BSONObj containing the last error.

Additionally, users can manually call DBClientWithCommands::getLastError which returns the entire object.

Generated at Wed Feb 07 21:59:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.