MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongocxx::v_noabi::authentication_exception Class Reference

Class representing an exception during authentication. More...

#include <authentication_exception.hpp>

+ Inheritance diagram for mongocxx::v_noabi::authentication_exception:

Public Member Functions

 operation_exception (std::error_code ec, bsoncxx::v_noabi::document::value &&raw_server_error, std::string what_arg="")
 Constructs a new operation exception.
 
- Public Member Functions inherited from mongocxx::v_noabi::operation_exception
 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 (stdx::string_view label) const
 Checks for the specified label in a operation exception.
 

Detailed Description

Class representing an exception during authentication.

See also
mongocxx::v_noabi::operation_exception

Member Function Documentation

◆ operation_exception()

mongocxx::v_noabi::operation_exception::operation_exception ( std::error_code  ec,
bsoncxx::v_noabi::document::value &&  raw_server_error,
std::string  what_arg = "" 
)

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: