17#define MkErrorCatchTmpl(hd,...) MkExceptionC::Catch(static_cast<MK_MNG>(hd),__VA_ARGS__)
152 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
160 const std::exception* exception_hdl = &exception;
161 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
171 if (callline == -1) {callline = __builtin_LINE();}
172 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
183 if (callline == -1) {callline = __builtin_LINE();}
184 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
191 if (callline == -1) {callline = __builtin_LINE();}
192 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
200 if (callline == -1) {callline = __builtin_LINE();}
201 if (callfile == NULL) {callfile = __builtin_FILE();}
202 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
210 if (callline == -1) {callline = __builtin_LINE();}
211 if (callfile == NULL) {callfile = __builtin_FILE();}
212 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
245 const MK_STRN message_hdl = message.c_str();
253 va_start (ap, printfmt);
274 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
282 const MK_STRN message_hdl = message.c_str();
283 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
292 va_start (ap, printfmt);
301 const MK_STRN callfunc_hdl = callfunc.c_str();
303 va_start (ap, printfmt);
319 const MK_STRN callfunc_hdl = callfunc.c_str();
330 MkPanicC(fmtobj_hdl, callfunc, errnum, message);
337 MkPanicC(fmtobj_hdl, callfunc, errnum, message);
344 const MK_STRN callfunc_hdl = callfunc.c_str();
345 const MK_STRN message_hdl = message.c_str();
346 MkPanicC(fmtobj_hdl, callfunc_hdl, errnum, message_hdl);
353 const MK_STRN callfunc_hdl = callfunc.c_str();
354 const MK_STRN message_hdl = message.c_str();
355 MkPanicC(fmtobj_hdl, callfunc_hdl, errnum, message_hdl);
362 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
370 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
379 va_start (ap, printfmt);
380 MkPanicVL(fmtobj_hdl, callfunc, errnum, printfmt, ap);
389 va_start (ap, printfmt);
390 MkPanicVL(fmtobj_hdl, callfunc, errnum, printfmt, ap);
398 const MK_STRN callfunc_hdl = callfunc.c_str();
400 va_start (ap, printfmt);
401 MkPanicVL(fmtobj_hdl, callfunc_hdl, errnum, printfmt, ap);
409 const MK_STRN callfunc_hdl = callfunc.c_str();
411 va_start (ap, printfmt);
412 MkPanicVL(fmtobj_hdl, callfunc_hdl, errnum, printfmt, ap);
420 MkPanicVL(fmtobj_hdl, callfunc, errnum, printfmt, var_list);
427 MkPanicVL(fmtobj_hdl, callfunc, errnum, printfmt, var_list);
434 const MK_STRN callfunc_hdl = callfunc.c_str();
435 MkPanicVL(fmtobj_hdl, callfunc_hdl, errnum, printfmt, var_list);
442 const MK_STRN callfunc_hdl = callfunc.c_str();
443 MkPanicVL(fmtobj_hdl, callfunc_hdl, errnum, printfmt, var_list);
486 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
506 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
514 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
578 if (__retVal__L == NULL) {
581 return MkErrorC::MkErrorC_ObjCreate(
MK_RT_CALL __retVal__L);
#define MkErrorC_Check(errObj, errVal)
#define MkErrorCatchTmpl(hd,...)
constructor return MK_NULL
The data-type to store and handle the error-condition … → C-API: libmkkernel::MkErrorS
constructor return MK_NULL
object header … → C-API: libmkkernel::MkObjectS
MK_ERR getERR__null_allow() const
return the LibMsgqueObject from current MkErrorC instance
MK_ERRN getERRN() const
(const) return the LibMsgqueObject from current MkErrorC instance
static MkErrorC * FORMAT(MK_OBJ const fmtobj)
static MkErrorC * MkErrorC_ObjNew(MK_RT_ARGS MK_ERR hdl)
return MkErrorC from LibMsgqueObject
MK_ERR getERR() const
return the LibMsgqueObject from current MkErrorC instance
static MkErrorC * HandleResolve(MK_HDL netHdl)
C++: [static] MkErrorC* MkErrorC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - ret...
static MkErrorC * Instances()
C++: [static] MkErrorC* MkErrorC::Instances() → C-API get head-instance from linked-list of MkEr...
MkErrorC * Next()
C++: MkErrorC* err.Next() → C-API get next instance from linked-list of MkErrorS type
static MkErrorC * GetNull()
C++: [static] MkErrorC* MkErrorC::GetNull() → C-API Null-Slot - return a MkErrorC typed NULL ins...
MkErrorC * Prev()
C++: MkErrorC* err.Prev() → C-API get previous instance from linked-list of MkErrorS type
#define MkErrorHandleResolve(...)
static MK_ERR MkErrorNext(MK_ERR const err)
get next instance from linked-list of MkErrorS type
#define MkErrorInstances()
static MK_ERR MkErrorGetNull(void)
Null-Slot - return a MkErrorC typed NULL instance …
static MK_ERR MkErrorPrev(MK_ERR const err)
get previous instance from linked-list of MkErrorS type
MK_STRN GetText() const
C++: MK_STRN err.GetText() → C-API get the MkErrorS::text …
MK_I32 GetNum() const
C++: MK_I32 err.GetNum() → C-API get the MkErrorS::num. The number can be used as exit-code …
MkErrorE GetCode() const
C++: MkErrorE err.GetCode() → C-API get the value of MkErrorS::code …
MK_SIZE GetSize() const
C++: MK_SIZE err.GetSize() → C-API get the error-message-size from the exception-object …
#define MkErrorGetSizeI(e)
get the error-message-size from the exception-object …
#define MkErrorGetCodeI(e)
get the value of MkErrorS::code …
#define MkErrorGetTextI(e)
get the MkErrorS::text …
#define MkErrorGetNumI(e)
get the MkErrorS::num. The number can be used as exit-code …
void Cleanup(MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE())
C++: err.Cleanup(MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE()) → C-A...
MkErrorC * Catch(std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION())
C++: MkErrorC* err.Catch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) ...
void Reset(MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE(), MK_BOOL force=false)
C++: err.Reset(MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE(),...
MkErrorE Stack(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: MkErrorE err.Stack(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE()...
void StackFormat(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: err.StackFormat(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(),...
void Println(MK_STRN msg="", MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE())
C++: err.Println(MK_STRN msg = "", MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __buil...
#define MkErrorStackFormat(...)
#define MkErrorPrintln(...)
#define MkErrorCleanup(...)
#define MkErrorStack(...)
#define MkErrorReset(...)
void AppendV(MK_FST printfmt,...)
C++: err.AppendV(MK_FST printfmt, ... ) → C-API append a vararg string to the MkErrorC …
void SetC(MK_STRN message, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 errnum=-1)
C++: err.SetC(MK_STRN message, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 errnum = -1) → C-API...
static void PanicVL(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list)
C++: [static] MkErrorC::PanicVL(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
static void PanicV(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt,...)
C++: [static] MkErrorC::PanicV(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
void AppendVL(MK_FST printfmt, va_list var_list)
C++: err.AppendVL(MK_FST printfmt, va_list var_list) → C-API append a va_list string to the MkE...
void SetV(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt,...)
C++: err.SetV(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, ... ) → C-API set the MkErrorS ...
static void PanicDEFAULT(const MkObjectC *fmtobj=NULL, MK_STRN callfunc=__builtin_FUNCTION())
C++: [static] MkErrorC::PanicDEFAULT(const MkObjectC* fmtobj = NULL, MK_STRN callfunc = __builtin_FUN...
MkErrorC * NoRaise()
C++: MkErrorC* err.NoRaise() → C-API ignore the next return of libmkkernel::MK_ERROR and do not...
void SetVL(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list)
C++: err.SetVL(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list) → C-API 'set...
static void PanicC(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_STRN message)
C++: [static] MkErrorC::PanicC(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
void AppendC(MK_STRN message)
C++: err.AppendC(MK_STRN message) → C-API append the message to the MkErrorS::text …
void Raise() const
C++: err.Raise() → C-API convert an ccmkkernel error into an programming-language-error and rai...
#define MkErrorSetVL(...)
#define MkErrorAppendVL(...)
#define MkPanicDEFAULT(...)
#define MkErrorRaise(...)
#define MkErrorAppendC(...)
#define MkErrorNoRaise(...)
void SetCode(MkErrorE code)
C++: err.SetCode(MkErrorE code) → C-API set the MkErrorS::code value …
void SetSOCKET(MK_STRN detail="UNKNOWN", MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetSOCKET(MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION()) → C-API ...
void SetEXIT(MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetEXIT(MK_STRN callfunc = __builtin_FUNCTION()) → C-API finish the current callback,...
void SetCONTINUE()
C++: err.SetCONTINUE() → C-API signal end of processing in an MqMqEventIF callback …
MK_BOOL IsTIMEOUT() const
C++: MK_BOOL err.IsTIMEOUT() → C-API check on TIMEOUT error …
void SetABORT(MK_STRN detail="UNKNOWN", MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetABORT(MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION()) → C-API ...
MK_BOOL IsEXIT()
C++: MK_BOOL err.IsEXIT() → C-API check on APPLICATION-EXIT error …
MK_BOOL IsSOCKET() const
C++: MK_BOOL err.IsSOCKET() → C-API check on SOCKET-DOWN error …
MK_BOOL IsABORT() const
C++: MK_BOOL err.IsABORT() → C-API check on ABORT signal …
bool MkErrorIsTIMEOUT(MK_ERRN const err)
check on TIMEOUT error …
bool MkErrorIsSOCKET(MK_ERRN const err)
check on SOCKET-DOWN error …
#define MkErrorSetCONTINUE(...)
bool MkErrorIsABORT(MK_ERRN const err)
check on ABORT signal …
bool MkErrorIsEXIT(MK_ERR const err)
check on APPLICATION-EXIT error …
#define MkErrorSetCode(...)
#define MkErrorSetEXIT(...)
#define MkErrorSetSOCKET(...)
#define MkErrorSetABORT(...)
static MkErrorC * PRINT()
C++: [static] MkErrorC* MkErrorC::PRINT() → C-API ignore-system-error - print the next error int...
static MkErrorC * IGNORE()
C++: [static] MkErrorC* MkErrorC::IGNORE() → C-API ignore-system-error - ignore the next error …
static MkErrorC * DEFAULT()
C++: [static] MkErrorC* MkErrorC::DEFAULT() → C-API default-system-error - default-error …
MK_ERR MkErrorFORMAT(MK_OBJN fmtobj)
system-error-format - format and return the default-error …
MkErrorC * Dup() const
C++: [constructor] MkErrorC* srce.Dup() → C-API Dup-Constructor - create a new MkErrorC instance...
void Copy(const MkErrorC *srce)
C++: dest.Copy(const MkErrorC* srce) → C-API Copy-Constructor - sync an existing MkErrorC insta...
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …
MK_STRB const * MK_FST
const format string pointer data-type
bool MK_BOOL
real bool data-type
int32_t MK_HDL
4 byte int handle data-type
signed int MK_I32
4 byte integer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
MK_OBJN getOBJN() const
(const) return the LibMsgqueObject from current MkObjectC instance
namespace for the CcMkKernel "C++"-API
The data-type to store and handle the error-condition …