MongoDB error. More...
#include <userver/storages/mongo/mongo_error.hpp>
Public Types | |
| enum class | Kind { kNoError , kNetwork , kClusterUnavailable , kIncompatibleServer , kAuthentication , kQuery , kInvalidQueryArgument , kServer , kWriteConcern , kDuplicateKey , kOther } |
| Error kinds. More... | |
Public Member Functions | |
| operator bool () const | |
| Checks whether an error is set up. | |
| bool | IsServerError () const |
| Checks whether this is a server error. | |
| Kind | GetKind () const |
| uint32_t | Code () const |
| const char * | Message () const |
| void | Throw (std::string prefix) const |
| Unconditionally throws specialized MongoException. | |
MongoDB error.
Definition at line 12 of file mongo_error.hpp.
|
strong |
Error kinds.
Definition at line 15 of file mongo_error.hpp.