MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK) … More...
Functions | |
void | rbmkkernel_MkExceptionC_Raise (OT_Prefix_ARGS MK_MNGN const expobj, MK_STRN const doc, MK_STRN const callfunc, MK_I32 callline) |
convert an MkErrorC into a Target-Programming-Language (TPL) exception … | |
MK_ERR | rbmkkernel_MkExceptionC_Catch (OT_Prefix_ARGS MK_MNG const expobj, MK_EXP exception, MK_STRN const callfunc, MK_STRN const stop) |
convert an Target-Programming-Language (TPL) exception into an MkErrorC … | |
MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK) …
The Programming-Language-Micro-Kernel (PLMK) provide with MkErrorC a complete error-handling with focus to support the "C"
Programming-Language. The support include catch, raise, signal and attributes. In addition every Target-Programming-Language (TPL) add their own error-handling and the purpose of MkExceptionC is to integrate the MkErrorC into the Target-Programming-Language (TPL).
The default-exception MkExceptionC is used to connect the MkErrorC with the Target-Programming-Language (TPL) error-object.
The implementation of an exception depends heavily on the Target-Programming-Language (TPL), starting with no exception at all, for example. C
, an exception as a class object, or as an exception as a global attribute.
MK_ERR rbmkkernel_MkExceptionC_Catch | ( | OT_Prefix_ARGS MK_MNG const | expobj, |
MK_EXP | exception, | ||
MK_STRN const | callfunc, | ||
MK_STRN const | stop ) |
convert an Target-Programming-Language (TPL) exception into an MkErrorC …
[in] | expobj | The LibMsgqueObject used to personalize the exception/error (will be validated first) |
[in] | exception | the exception object from Ruby, if nil the global exception object is used |
[in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, nil = resolve-own-name) |
[in] | stop | End of stack-trace |
Definition at line 66 of file MkExceptionC_rb.c.
void rbmkkernel_MkExceptionC_Raise | ( | OT_Prefix_ARGS MK_MNGN const | expobj, |
MK_STRN const | doc, | ||
MK_STRN const | callfunc, | ||
MK_I32 | callline ) |
convert an MkErrorC into a Target-Programming-Language (TPL) exception …
[in] | expobj | The LibMsgqueObject used to personalize the exception/error (will be validated first) |
[in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, nil = resolve-own-name) |
[in] | callline | the number of the line the call take place (e.g. LINE) |
[in] | doc | documentation string |
Definition at line 43 of file MkExceptionC_rb.c.