packaging an error from sqlite3. This exception will be thrown if sqlite3 reports an error.
More...
#include <sl3/error.hpp>
packaging an error from sqlite3. This exception will be thrown if sqlite3 reports an error.
Holds the sqlite3 error code and the error message if it is available.
- See also
- Database::getMostRecentErrMsg
-
Database::getMostRecentErrCode
Extended error codes can be obtained through Database class.
- See also
- Database::getMostRecentExtendedErrCode
-
Database::enableExtendedResultCodes
◆ ErrType() [1/2]
c'tor
- Parameters
-
sl3ec | sqite error code |
sl3msg | sqite error code |
msg | additional message |
◆ ErrType() [2/2]
c'tor
- Parameters
-
sl3ec | sqite error code |
sl3msg | sqite error code |
◆ getId()
Get ErrCode.
- Returns
- the Errcode of the excetion
Implements sl3::Error.
◆ SQLiteErrorCode()
Get the sqlite3 error code.
- Returns
- the sqlite3 error code
◆ SQLiteErrorMessage()
Get the sqlite3 error message.
If the exception was created with a sqlite a error message it can be accessed here.
- Returns
- the sqlite3 error message
The documentation for this class was generated from the following file: