Sqlitepp  1.2.3
A thin sqlite C++ wrapper
Public Member Functions | Protected Member Functions | List of all members
sqlite::Error Class Referenceabstract

Common data for SQL errors (abstract base) More...

#include <error.hpp>

Inheritance diagram for sqlite::Error:
Inheritance graph
[legend]

Public Member Functions

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...
 

Protected Member Functions

 Error (const std::string &sql, int sqlite_error_code, sqlite3 *db)
 

Detailed Description

Common data for SQL errors (abstract base)

Constructor & Destructor Documentation

◆ Error()

sqlite::Error::Error ( const std::string &  sql,
int  sqlite_error_code,
sqlite3 *  db 
)
protected
Parameters
[in]sqlLast SQL code ran
[in]sqlite_error_codeSqlite3 extended error code
[in]dbSqlite3 DB object

Member Function Documentation

◆ sql()

const char * sqlite::Error::sql ( ) const
virtualnoexcept

Get SQL code where error was thrown.

◆ err_code()

int sqlite::Error::err_code ( ) const
virtualnoexcept

Get sqlite3 error code.

◆ 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: