summaryrefslogtreecommitdiff
path: root/src/libs/sqlite/sqlstatementbuilderexception.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/sqlite/sqlstatementbuilderexception.h')
-rw-r--r--src/libs/sqlite/sqlstatementbuilderexception.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/sqlite/sqlstatementbuilderexception.h b/src/libs/sqlite/sqlstatementbuilderexception.h
index 380b683e8d..e5ad187f4b 100644
--- a/src/libs/sqlite/sqlstatementbuilderexception.h
+++ b/src/libs/sqlite/sqlstatementbuilderexception.h
@@ -10,7 +10,16 @@ namespace Sqlite {
class SQLITE_EXPORT SqlStatementBuilderException : public ExceptionWithMessage
{
public:
- using ExceptionWithMessage::ExceptionWithMessage;
+ SqlStatementBuilderException(const char *whatHasHappened,
+ Utils::SmallString &&sqliteErrorMessage)
+ : ExceptionWithMessage(std::move(sqliteErrorMessage))
+ , m_whatHasHappened{whatHasHappened}
+ {}
+
+ const char *what() const noexcept override;
+
+private:
+ const char *m_whatHasHappened;
};
} // namespace Sqlite