3 #ifndef __SQLITEXX_SQLITE_EXCEPTION_H__
4 #define __SQLITEXX_SQLITE_EXCEPTION_H__
19 const std::string message;
21 explicit exception(sqlite3 *
const connection) :
22 std::runtime_error(sqlite3_errmsg(connection)),
23 errcode(sqlite3_extended_errcode(connection)),
24 message(sqlite3_errmsg(connection))
27 explicit exception(
const int code,
const std::string& message) :
28 std::runtime_error(message),
47 class SQLiteXXException:
public std::runtime_error
50 explicit SQLiteXXException(
const std::string& message) :
51 std::runtime_error(message)
56 void throw_error_code(sqlite3 *connection);
57 void throw_error_code(
const int errcode,
const std::string& message);
Encapsulation of the SQLITE_BUSY error code derived from SQLite::Exception.
Encapsulation of the error code and message from SQLite3, based on std::runtime_error.