Common data for SQL errors (abstract base)
More...
#include <error.hpp>
|
virtual const char * | sql () const noexcept |
| Get SQL code where error was thrown. More...
|
|
virtual int | err_code () const noexcept |
| Get sqlite3 error code. More...
|
|
virtual const char * | err_str () const noexcept |
| Get a description of the sqlite3 error code. More...
|
|
virtual const char * | err_msg () const noexcept |
| Get the sqlite3 error message. More...
|
|
|
| Error (const std::string &sql, int sqlite_error_code, sqlite3 *db) |
|
Common data for SQL errors (abstract base)
◆ Error()
sqlite::Error::Error |
( |
const std::string & |
sql, |
|
|
int |
sqlite_error_code, |
|
|
sqlite3 * |
db |
|
) |
| |
|
protected |
- Parameters
-
[in] | sql | Last SQL code ran |
[in] | sqlite_error_code | Sqlite3 extended error code |
[in] | db | Sqlite3 DB object |
◆ sql()
const char * sqlite::Error::sql |
( |
| ) |
const |
|
virtualnoexcept |
Get SQL code where error was thrown.
◆ err_code()
int sqlite::Error::err_code |
( |
| ) |
const |
|
virtualnoexcept |
◆ err_str()
const char * sqlite::Error::err_str |
( |
| ) |
const |
|
virtualnoexcept |
Get a description of the sqlite3 error code.
◆ err_msg()
const char * sqlite::Error::err_msg |
( |
| ) |
const |
|
virtualnoexcept |
Get the sqlite3 error message.
The documentation for this class was generated from the following files: