33BSONCXX_PRIVATE_WARNINGS_PUSH();
34BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
35BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
43class operation_exception :
public exception {
45 ~operation_exception()
override;
47 operation_exception(operation_exception&&) =
default;
48 operation_exception& operator=(operation_exception&&) =
default;
49 operation_exception(operation_exception
const&) =
default;
50 operation_exception& operator=(operation_exception
const&) =
default;
52 using exception::exception;
67 std::string what_arg =
"");
43class operation_exception :
public exception {
…};
94BSONCXX_PRIVATE_WARNINGS_POP();
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
A polyfill for std::optional<T>.
Definition optional.hpp:800
A polyfill for std::string_view.
Definition string_view.hpp:411
A read-only BSON document that owns its underlying buffer.
Definition value.hpp:39
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.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > const & raw_server_error() const
The optional raw bson error document from the server.
Provides bsoncxx::v_noabi::document::value.
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Provides mongocxx::v_noabi::exception.
Declares entities whose ABI stability is NOT guaranteed.
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.