33BSONCXX_PUSH_WARNINGS();
34BSONCXX_DISABLE_WARNING(MSVC(4251));
35BSONCXX_DISABLE_WARNING(MSVC(4275));
53 using exception::exception;
67 std::string what_arg =
"");
95BSONCXX_POP_WARNINGS();
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
A read-only BSON document that owns its underlying buffer. When a document::value goes out of scope,...
Definition value.hpp:38
A polyfill for std::optional<T>.
Definition optional.hpp:826
A polyfill for std::string_view.
Definition string_view.hpp:436
A class to be used as the base class for all mongocxx exceptions.
Definition exception.hpp:36
Class representing an exception received from a MongoDB server. It includes the server-provided error...
Definition operation_exception.hpp:44
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > & raw_server_error() const
The optional raw bson error document from the server.
operation_exception(std::error_code ec, bsoncxx::v_noabi::document::value &&raw_server_error, std::string what_arg="")
Constructs a new operation exception.
bool has_error_label(bsoncxx::v_noabi::stdx::string_view label) const
Checks for the specified label in a operation exception.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > & raw_server_error()
The optional raw bson error document from the server.
Provides bsoncxx::v_noabi::document::value.
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
Provides mongocxx::v_noabi::exception.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v_noabi::operation_exception.
Provides std::optional-related polyfills for library API usage.