![]() |
mksqlite
2.5
A MATLAB interface to SQLite
|
Helperclass for error message transport. More...
#include <locale.hpp>
Inheritance diagram for Err:Public Member Functions | |
| 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. | |
Private Attributes | |
| int | m_msgId |
| Message ID (see Message Identifiers) | |
| char | m_shared_msg [1024] |
| (Shared) text buffer for non-const (generated) messages | |
| const char * | m_static_msg |
| Holds pointer to static message text. | |
| const char * | m_err_id |
| Holds the error id (for MATLAB exception handling f.e., see MSG_IDS) | |
| bool | m_isPending |
| Message has still to be handled if this flag is set. | |
Helperclass for error message transport.
Definition at line 116 of file locale.hpp.
|
inline |
Get the current error message.
| [in] | errId | Pointer to constant error identifier |
Definition at line 266 of file locale.hpp.
References m_err_id, and m_static_msg.
Referenced by SQLiface::getErr(), and Mksqlite::returnWithError().
Here is the caller graph for this function:
|
inline |
Set error message to a constant string (without translation)
| [in] | strMsg | Pointer to constant error message text |
| [in] | strId | Pointer to constant error identifier |
Definition at line 150 of file locale.hpp.
References clear().
Referenced by Mksqlite::argGetNextFcnHandle(), Mksqlite::argGetNextInteger(), Mksqlite::argGetNextLiteral(), Mksqlite::argTryReadValidDbid(), blob_pack(), NumberCompressor::bloscCompress(), NumberCompressor::bloscDecompress(), Mksqlite::cmdHandleClose(), Mksqlite::cmdHandleOpen(), Mksqlite::cmdHandleSQLStatement(), Mksqlite::cmdTryHandleCreateAggregation(), Mksqlite::cmdTryHandleCreateFunction(), Mksqlite::cmdTryHandleEnableExtension(), Mksqlite::cmdTryHandleFilename(), Mksqlite::cmdTryHandleFlag(), Mksqlite::cmdTryHandleLanguage(), Mksqlite::cmdTryHandleResultType(), Mksqlite::cmdTryHandleSetBusyTimeout(), Mksqlite::cmdTryHandleStatus(), Mksqlite::cmdTryHandleStreaming(), Mksqlite::cmdTryHandleTypedBlob(), Mksqlite::cmdTryHandleVersion(), Mksqlite::createResultAsArrayOfStructs(), Mksqlite::createResultAsMatrix(), Mksqlite::createResultAsStructOfArrays(), Mksqlite::createResultColNameMatrix(), Mksqlite::ensureDbIsOpen(), NumberCompressor::linlogQuantizerCompress(), NumberCompressor::linlogQuantizerDecompress(), SQLstackitem::openDb(), SQLiface::setErr(), and Mksqlite::switchDBSlot().
Here is the caller graph for this function:
|
inline |
Set error message to non-constant string (no translation)
| [in] | strMsg | Pointer to message text |
| [in] | strId | Pointer to constant error identifier |
Definition at line 172 of file locale.hpp.
References clear().
|
inline |
Set error message by identifier (translations available)
| [in] | iMessageNr | Message identifier (see Message Identifiers) |
| [in] | strId | Pointer to constant error identifier |
Definition at line 197 of file locale.hpp.
|
inline |
Set error message by identifier (translations available) with printf arguments.
| [in] | iMessageNr | Message identifier (see Message Identifiers) |
| [in] | strId | Pointer to constant error identifier |
Definition at line 218 of file locale.hpp.
References getLocaleMsg(), and m_shared_msg.
Referenced by SQLerror::setSqlError().
Here is the caller graph for this function:
|
inline |
Set error message by format string with arguments.
| [in] | fmt | Pointer to constant format string |
| [in] | strId | Pointer to constant error identifier |
Definition at line 243 of file locale.hpp.
1.8.13