-
Type: New Feature
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Error
Use Case
As a... Node.js driver end user
I want... to access all of the information the server returns when a command fails
So that... I have more context on the failure
Acceptance Criteria
Implementation Requirements
- Return raw result for server error message in error response, MongoServerError.errorResponse
- File follow up to deal with enumerable properties in 7.0
Testing Requirements
- Sync unified tests for Collection Management, CRUD, and Unified Test Runner ("valid")
- May need to skip tests for BulkWriteException and WriteException
- In UTR, introduces a new expectedError.errorResponse assertion for matching the full command response attached to an exception.
Documentation Requirements
- Add API docs for MongoServerError.errorResponse
Follow-up Requirements
- File follow up to deal with enumerable properties in 7.0
- has to be done before
-
NODE-5987 MongoServerError enumerable keys are duplicated by errorResponse
- Backlog
- split from
-
DRIVERS-2385 Provide access to raw result document when the server returns an error for a command
- Implementing
There are no Sub-Tasks for this issue.