Skip to content
master
Switch branches/tags
Code

Latest commit

* Fix CXX-2329; change type of thrown exception to match documentation.

Modify exceptions throw to use mongocxx::logic_error.

Adds std::error_code/std::errc plumbing, as mongocxx::exception
derives from std::system_exception, and mongocxx::logic_error
derives in turn from that.

See: https://jira.mongodb.org/browse/CXX-2329

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

* Updated thrown type to use mongocxx error codes.

We provide our own error codes, and there's precedent for using
k_invalid_argument.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

* Added new mongocxx::error_code for failing to create a resource.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

* Throw mongocxx::logic_error rather than std::logic_error.

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>

* clang-format

Signed-off-by: Jesse Williamson <jesse.williamson@mongodb.com>
c2932be

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
etc
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MongoDB C++ Driver

Travis Build Status Evergreen Build Status codecov Documentation Documentation License

Welcome to the MongoDB C++ Driver!

Branches - releases/stable versus master

The default checkout branch of this repository is releases/stable. This will always contain the latest stable release of the driver. The master branch is used for active development. master should only be used when making contributions back to the driver, as it is not stable for use in production.

See Driver Status by family and version for more details about the various versions of the driver.

Resources

Driver status by family and version

Stability indicates whether this driver is recommended for production use. Currently, no drivers guarantee API or ABI stability.

Family/version Stability Development Purpose
(repo master branch) Unstable Active development New feature development
mongocxx 3.6.x Stable Bug fixes only Current stable C++ driver release
mongocxx 3.5.x Stable None Previous stable C++ driver release
mongocxx 3.4.x Stable None Previous stable C++ driver release
mongocxx 3.3.x Stable None Previous stable C++ driver release
mongocxx 3.2.x Stable None Previous stable C++ driver release
mongocxx 3.1.x Stable None Previous stable C++ driver release
mongocxx 3.0.x Stable None Previous stable C++ driver release

MongoDB compatibility

Compatibility of each C++ driver version with each MongoDB server is documented in the MongoDB manual.

Bugs and issues

See our JIRA project.

License

The source files in this repository are made available under the terms of the Apache License, version 2.0.