forked from blue/lmdbal
finally methods that actually do something, some testing of them
This commit is contained in:
parent
5fba60f7f0
commit
8cb1e97e30
9 changed files with 348 additions and 12 deletions
|
@ -76,6 +76,27 @@ private:
|
|||
std::optional<std::string> tableName;
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Thrown if the cursor was operated in closed state
|
||||
*/
|
||||
class CursorNotReady : public Exception {
|
||||
public:
|
||||
/**
|
||||
* \brief Creates exception
|
||||
*
|
||||
* \param operation - text name of the method that was called on closed cursor
|
||||
* \param dbName - name of the database
|
||||
* \param tableName - name of the storage owning the cursor
|
||||
*/
|
||||
CursorNotReady(const std::string& operation, const std::string& dbName, const std::string& tableName);
|
||||
|
||||
std::string getMessage() const;
|
||||
private:
|
||||
std::string operation;
|
||||
std::string dbName;
|
||||
std::string tableName;
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Thrown if something in the database was called on opened state and it is not supported
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue