libsqlite3x 2007.10.18
sqlite3x::database_error Class Reference

Exception type used by the sqlite3x classes. More...

#include <sqlite3x.hpp>

Inheritance diagram for sqlite3x::database_error:

Public Member Functions

 database_error (const char *format,...)
 Takes a format specifier compatible with printf.
 
 database_error (sqlite3_connection &con)
 Creates an exception with con.errormsg() as the what() text.
 
virtual char const * what () const throw ()
 Returns this object's error string.
 

Detailed Description

Exception type used by the sqlite3x classes.

Definition at line 777 of file sqlite3x.hpp.

Constructor & Destructor Documentation

◆ database_error() [1/2]

sqlite3x::database_error::database_error ( const char * format,
... )
explicit

Takes a format specifier compatible with printf.

If the message length surpasses a hard-coded limit (2k?) then it is truncated to fit within that limit.

Definition at line 47 of file sqlite3x_exception.cpp.

◆ database_error() [2/2]

sqlite3x::database_error::database_error ( sqlite3_connection & con)

Creates an exception with con.errormsg() as the what() text.

Definition at line 37 of file sqlite3x_exception.cpp.

◆ ~database_error()

sqlite3x::database_error::~database_error ( )
throw ( )
virtual

Definition at line 35 of file sqlite3x_exception.cpp.

Member Function Documentation

◆ what()

char const * sqlite3x::database_error::what ( ) const
throw ( )
virtual

Returns this object's error string.

Definition at line 42 of file sqlite3x_exception.cpp.


The documentation for this class was generated from the following files: