24 #ifndef SQLITE_ERROR_HPP 25 #define SQLITE_ERROR_HPP 30 #include <sqlitepp/sqlite3.h> 44 virtual const char *
sql()
const noexcept;
47 virtual int err_code()
const noexcept;
50 virtual const char *
err_str()
const noexcept;
53 virtual const char *
err_msg()
const noexcept;
59 Error(
const std::string &
sql,
int sqlite_error_code, sqlite3 * db);
63 int sqlite_error_code_;
76 int sqlite_error_code, sqlite3 * db);
89 int sqlite_error_code, sqlite3 * db);
94 # endif // SQLITE_ERROR_HPP virtual const char * err_msg() const noexcept
Get the sqlite3 error message.
Definition: error.cpp:46
Sqlite C++ wrapper and associated types.
Definition: database.hpp:30
SQL Logic error.
Definition: error.hpp:68
SQL Runtime error.
Definition: error.hpp:81
virtual int err_code() const noexcept
Get sqlite3 error code.
Definition: error.cpp:36
virtual const char * sql() const noexcept
Get SQL code where error was thrown.
Definition: error.cpp:31
Error(const std::string &sql, int sqlite_error_code, sqlite3 *db)
Definition: error.cpp:54
virtual const char * err_str() const noexcept
Get a description of the sqlite3 error code.
Definition: error.cpp:41
Common data for SQL errors (abstract base)
Definition: error.hpp:38