37 const char*
what() const noexcept( true ) override;
69 Closed(
const std::string& operation,
const std::string& dbName,
const std::optional<std::string>& tableName = std::nullopt);
71 std::string getMessage()
const;
73 std::string operation;
75 std::optional<std::string> tableName;
90 CursorNotReady(
const std::string& operation,
const std::string& dbName,
const std::string& tableName);
92 std::string getMessage()
const;
94 std::string operation;
96 std::string tableName;
111 std::string getMessage()
const;
113 std::string operation;
127 Opened(
const std::string& dbName,
const std::string& action);
129 std::string getMessage()
const;
147 NotFound(
const std::string& key,
const std::string& dbName,
const std::string& tableName);
149 std::string getMessage()
const;
153 std::string tableName;
169 std::string getMessage()
const;
172 std::string tableName;
187 Exist(
const std::string& key,
const std::string& dbName,
const std::string& tableName);
189 std::string getMessage()
const;
193 std::string tableName;
208 TransactionTerminated(
const std::string& dbName,
const std::string& tableName,
const std::string& action =
"");
210 std::string getMessage()
const;
213 std::string tableName;
229 Unknown(
const std::string& dbName,
const std::string& message,
const std::optional<std::string>& tableName = std::nullopt);
231 std::string getMessage()
const;
234 std::optional<std::string> tableName;
Thrown if something in the database was called on closed state and it is not supported.
Definition exceptions.h:60
Thrown if an empty cursor was somehow operated.
Definition exceptions.h:102
Thrown if the cursor was operated in closed state.
Definition exceptions.h:81
Thrown if LMDBAL had issues creating or opening database directory.
Definition exceptions.h:43
Parent abstract class for all LMDBAL exceptions.
Definition exceptions.h:30
const char * what() const noexcept(true) override
system exception method that is actually called to show the message
Definition exceptions.cpp:27
virtual std::string getMessage() const =0
returns exception message
Thrown if there was a key conflict in one of the storages.
Definition exceptions.h:178
Thrown if something in the database was not found.
Definition exceptions.h:138
Thrown if something in the database was called on opened state and it is not supported.
Definition exceptions.h:119
Thrown if there was attempt to define storages with conflicting names.
Definition exceptions.h:159
Definition exceptions.h:199
Thrown if something unexpected happened.
Definition exceptions.h:220