Simple error class to be thrown if there is any sqlite error on any of the operations.
More...
#include <sqlite.h>
|
| SQLiteError (int code, const std::string &prefix="") |
| Construct an instance from a prefix string and an sqlite error code.
|
|
int | code () const |
| Return the sqlite error code.
|
|
Simple error class to be thrown if there is any sqlite error on any of the operations.
Definition at line 36 of file sqlite.h.
◆ SQLiteError()
SQLiteError |
( |
int | code, |
|
|
const std::string & | prefix = "" ) |
|
inlineexplicit |
Construct an instance from a prefix string and an sqlite error code.
Definition at line 39 of file sqlite.h.
39: std::runtime_error(prefix + sqlite3_errstr(code)), m_code(code) {}
◆ code()
Return the sqlite error code.
Definition at line 41 of file sqlite.h.
◆ m_code
SQLite error code.
Definition at line 43 of file sqlite.h.
The documentation for this class was generated from the following file: