-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.0, 4.0.0
-
Component/s: API
Right now, libmongoc doesn't give us a way to distinguish server side errors from its own local numeric codes. Worse, some of the codes are in conflict. Our only reasonable option is to surface the raw error code to the user with no additional interpretation.
Once the C driver has resolved this issue, we should add our own symbolic codes for errors returned by libmongoc to the mongocxx::error_codes enumeration, and populate the mongocxx::server_error_codes enumeration with the contents of error_codes.err.
All other server codes that don't have symbolic representations will still be surfaced as a numeric code, which will all map to the same string representation.
- is depended on by
-
CXX-1569 CXX ABI
- Ready for Work
- is duplicated by
-
CXX-895 Implement new error handling above new C driver improved error handling
- Closed
- is related to
-
CXX-1297 mongocxx code should throw exceptions derived from mongocxx::exception, instead of throwing mongocxx::exception itself
- Closed
- related to
-
CDRIVER-644 bson_error_t's "code" is often wrong
- Closed
-
CXX-1409 Add implementation of Change Streams
- Closed
-
CXX-1110 Add REQUIRE_THROWS_AS_WITH_CODE test macro
- Closed