SQLite for C++
Classes
SQLite Namespace Reference

Classes

class  Conn
 
struct  conn_base
 
class  DatabaseClosed
 
class  SQLiteError
 
class  StatementClosed
 
struct  stmt_base
 
class  ValueError
 

Errors

Classes for various runtime errors

const std::map< int, std::string > SQLITE_ERROR_MSG
 
const std::map< int, std::string > SQLITE_EXT_ERROR_MSG
 
void throw_sqlite_error (const int &error_code, const int &ext_error_code)
 

Detailed Description

Variable Documentation

◆ SQLITE_ERROR_MSG

const std::map<int, std::string> SQLite::SQLITE_ERROR_MSG
Initial value:
= {
{ 1, "SQLITE_ERROR: Generic SQLite Error" },
{ 19, "SQLITE_CONSTRAINT: SQL constrainted violated" }
}

Map error codes to error messages

◆ SQLITE_EXT_ERROR_MSG

const std::map<int, std::string> SQLite::SQLITE_EXT_ERROR_MSG
Initial value:
= {
{ 787, "SQLITE_CONSTRAINT_FOREIGNKEY: Foreign key constraint failed" },
{ 1555, "SQLITE_CONSTRAINT_PRIMARYKEY: Primary key constraint failed" }
}