Exceptions throws for GLE should contain the entire GLE document
(CXX-460)
|
|
| 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. |