MongoDB C++ Driver  mongocxx-3.7.0
Public Member Functions | List of all members
mongocxx::query_exception Class Reference

Class representing an exception during a query operation. More...

#include <query_exception.hpp>

+ Inheritance diagram for mongocxx::query_exception:

Public Member Functions

 operation_exception (std::error_code ec, bsoncxx::document::value &&raw_server_error, std::string what_arg="")
 Constructs a new operation exception. More...
 
- Public Member Functions inherited from mongocxx::operation_exception
 operation_exception (std::error_code ec, bsoncxx::document::value &&raw_server_error, std::string what_arg="")
 Constructs a new operation exception. More...
 
bool has_error_label (stdx::string_view label) const
 Checks for the specified label in a operation exception. More...
 
const stdx::optional< bsoncxx::document::value > & raw_server_error () const
 The optional raw bson error document from the server. More...
 
stdx::optional< bsoncxx::document::value > & raw_server_error ()
 The optional raw bson error document from the server. More...
 

Detailed Description

Class representing an exception during a query operation.

See also
mongocxx::operation_exception

Member Function Documentation

◆ operation_exception()

mongocxx::operation_exception::operation_exception

Constructs a new operation exception.

Parameters
ecThe error code associated with this exception.
raw_server_errorThe optional raw bson error document to be associated with this exception.
what_argAn optional message to be returned by what.

The documentation for this class was generated from the following file: