sqlitepp
C++ binding for the SQLite3 library
|
An error that occurred during a database operation. More...
#include <sqlitepp/sqlitepp.h>
Public Member Functions | |
DatabaseError (const int errorCode) | |
Creates a new DatabaseError with the given code and the default message. More... | |
DatabaseError (const int errorCode, const std::string &errorMessage) | |
Creates a new DatabaseError with the given code and message. More... | |
int | errorCode () const |
Returns the SQLite3 error code for this error. More... | |
An error that occurred during a database operation.
This error class is only used for errors that occured in the SQLite3 library and that are related to database operations. If there are other problems, for example wrong states or illegal arguments, appropriate other exceptions are thrown.
This exception class stores the SQLite3 error code and the error message.
|
explicit |
Creates a new DatabaseError with the given code and the default message.
The message is retrieved from the default SQLite3 error messages.
errorCode | the SQLite3 error code |
sqlitepp::DatabaseError::DatabaseError | ( | const int | errorCode, |
const std::string & | errorMessage | ||
) |
Creates a new DatabaseError with the given code and message.
errorCode | the SQLite3 error code |
errorMessage | the according error message |
int sqlitepp::DatabaseError::errorCode | ( | ) | const |
Returns the SQLite3 error code for this error.