17 #include <system_error> 19 #include <mongocxx/config/prelude.hpp> 22 MONGOCXX_INLINE_NAMESPACE_BEGIN
101 MONGOCXX_API
const std::error_category& MONGOCXX_CALL
error_category();
114 MONGOCXX_INLINE_NAMESPACE_END
117 #include <mongocxx/config/postlude.hpp> Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
A default-constructed or moved-from mongocxx::database object has been used.
An invalid or out-of-bounds parameter was provided.
A mongocxx::gridfs::uploader object was not open for writing, or a mongocxx::gridfs::downloader objec...
mongocxx::client.create_session failed to create a mongocxx::client_session.
The requested GridFS file was not found.
An unknown write concern level was set.
More than one mongocxx::instance has been created.
Definition: error_code.hpp:117
A mongocxx::gridfs::uploader object has exceeded the maximum number of allowable GridFS chunks when a...
const std::error_category & error_category()
Get the error_category for mongocxx library exceptions.
std::error_code make_error_code(error_code error)
Translate a mongocxx::error_code into a std::error_code.
Definition: error_code.hpp:110
The server returned a malformed response.
A default-constructed or moved-from mongocxx::client object has been used.
The mongocxx::instance has been destroyed.
A moved-from mongocxx::options::transaction object has been used.
A default-constructed or moved-from mongocxx::gridfs::downloader object has been used.
An invalid MongoDB URI was provided.
A GridFS file being operated on was discovered to be corrupted.
A default-constructed or moved-from mongocxx::gridfs::uploader object has been used.
A default-constructed or moved-from mongocxx::collection object has been used.
An unknown read concern level was set.
A default-constructed or moved-from mongocxx::gridfs::bucket object has been used.
An SSL operation was used without SSL support being built.
A failure attempting to pass a mongocxx::client_session to a method.
error_code
Enum representing the various error types that can occur during driver usage.
Definition: error_code.hpp:27