![]() |
mksqlite
2.5
A MATLAB interface to SQLite
|
Class holding an error. More...
#include <sql_interface.hpp>
Public Member Functions | |
void | setSqlError (sqlite3 *dbid, int rc) |
Set error by its result code. | |
const char * | trans_err_to_ident (int errorcode) |
Get least SQLite error code and return identifier as string. | |
![]() | |
Err () | |
Constructor. | |
void | clear () |
Reset error message. | |
void | set (const char *strMsg, const char *strId=NULL) |
Set error message to a constant string (without translation) More... | |
void | set (char *strMsg, const char *strId=NULL) |
Set error message to non-constant string (no translation) More... | |
void | set (int iMessageNr, const char *strId=NULL) |
Set error message by identifier (translations available) More... | |
void | set_printf (int iMessageNr, const char *strId,...) |
Set error message by identifier (translations available) with printf arguments. More... | |
void | set_printf (const char *fmt, const char *strId,...) |
Set error message by format string with arguments. More... | |
const char * | get (const char **errId=NULL) |
Get the current error message. More... | |
int | getMsgId () |
Get the current message identifier. | |
bool | isPending () |
Returns true, if the current error message is still not handled. | |
void | warn (int iMessageNr) |
Omits a warning with the current error message. | |
Class holding an error.
Definition at line 46 of file sql_interface.hpp.