libsqlite3x  2007.10.18
Public Member Functions | List of all members
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. More...
 
 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()

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.


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