31class Exception :
public std::exception {
33 explicit Exception(std::size_t expectedSize = 0);
34 ~Exception()
override;
37 const char*
what()
const noexcept( true )
override;
57 explicit Directory(std::string_view path);
59 std::string_view path;
74 Closed(std::string_view operation, std::string_view dbName, std::optional<std::string_view> tableName = std::nullopt);
76 std::string_view operation;
77 std::string_view dbName;
78 std::optional<std::string_view> tableName;
93 CursorNotReady(std::string_view operation, std::string_view dbName, std::string_view tableName);
95 std::string_view operation;
96 std::string_view dbName;
97 std::string_view tableName;
112 std::string_view operation;
126 Opened(std::string_view dbName, std::string_view action);
128 std::string_view dbName;
129 std::string_view action;
144 NotFound(std::string_view key, std::string_view dbName, std::string_view tableName);
146 std::string_view key;
147 std::string_view dbName;
148 std::string_view tableName;
164 std::string_view dbName;
165 std::string_view tableName;
180 Exist(std::string_view key, std::string_view dbName, std::string_view tableName);
182 std::string_view key;
183 std::string_view dbName;
184 std::string_view tableName;
199 TransactionTerminated(std::string_view dbName, std::string_view tableName, std::string_view action =
"");
201 std::string_view dbName;
202 std::string_view tableName;
203 std::string_view action;
218 Unknown(std::string_view dbName, std::string_view message, std::optional<std::string_view> tableName = std::nullopt);
220 std::string_view dbName;
221 std::optional<std::string_view> tableName;
222 std::string_view details;
Closed(std::string_view operation, std::string_view dbName, std::optional< std::string_view > tableName=std::nullopt)
Creates exception.
Definition exceptions.cpp:95
CursorEmpty(std::string_view operation)
Creates exception.
Definition exceptions.cpp:129
CursorNotReady(std::string_view operation, std::string_view dbName, std::string_view tableName)
Creates exception.
Definition exceptions.cpp:114
Directory(std::string_view path)
Creates exception.
Definition exceptions.cpp:90
std::string_view appendSegment(std::string_view value)
appends value to message and returns a view
Definition exceptions.cpp:80
std::string getMessage() const
returns exception message
Definition exceptions.cpp:72
void appendLiteral(std::string_view value)
appends value to message without returning a view
Definition exceptions.cpp:86
const char * what() const noexcept(true) override
system exception method that is actually called to show the message
Definition exceptions.cpp:76
Exist(std::string_view key, std::string_view dbName, std::string_view tableName)
Creates exception.
Definition exceptions.cpp:170
NotFound(std::string_view key, std::string_view dbName, std::string_view tableName)
Creates exception.
Definition exceptions.cpp:144
Opened(std::string_view dbName, std::string_view action)
Creates exception.
Definition exceptions.cpp:135
StorageDuplicate(std::string_view dbName, std::string_view tableName)
Creates exception.
Definition exceptions.cpp:158
TransactionTerminated(std::string_view dbName, std::string_view tableName, std::string_view action="")
Creates exception.
Definition exceptions.cpp:185
Unknown(std::string_view dbName, std::string_view message, std::optional< std::string_view > tableName=std::nullopt)
Creates exception.
Definition exceptions.cpp:208
Destroys a cache.
Definition base.h:36