theKernel 10.0
|
C-API: MkExceptionC_C_API - MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK) … More...
Public Member Functions | |
MkExceptionC (IntPtr expobj, [CallerMemberName] string callfunc=null, [CallerLineNumber] int callline=-1) | |
convert an MkErrorC into a Target-Programming-Language (TPL) exception … | |
MkExceptionC (SerializationInfo info, StreamingContext sctx) | |
override void | GetObjectData (SerializationInfo info, StreamingContext sctx) |
Static Public Member Functions | |
static IntPtr | Catch (IntPtr mkrt, IntPtr expobj, Exception exception, IntPtr callfunc) |
convert an Target-Programming-Language (TPL) exception into an MkErrorC … | |
C-API: MkExceptionC_C_API - 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.
Definition at line 28 of file MkExceptionC.cs.
|
inline |
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, null = resolve-own-name) |
[in] | callline | the number of the line the call take place (e.g. LINE) |
Definition at line 39 of file MkExceptionC.cs.
|
inline |
Definition at line 56 of file MkExceptionC.cs.
|
inlinestatic |
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 C#, if null the global exception object is used |
[in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, null = resolve-own-name) |
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
Definition at line 72 of file MkExceptionC.cs.
|
inline |
Definition at line 65 of file MkExceptionC.cs.