theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Misc_CS_API

MkErrorC - various functions to 'work' on a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Misc_CS_API:

Functions

MkErrorC csmkkernel.MkErrorC.Catch (Exception exception=null, [CallerMemberName]string callfunc=null)
  C#: MkErrorC err.Catch(Exception exception = null, [CallerMemberName]string callfunc = null) C-API
convert a programming-language-error into an csmkkernel error …
 
void csmkkernel.MkErrorC.Cleanup ([CallerMemberName]string callfunc=null, [CallerLineNumber]int callline=-1)
  C#: err.Cleanup([CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1) C-API
cleanup and print unwanted active error …
 
void csmkkernel.MkErrorC.Println (string msg="", [CallerMemberName]string callfunc=null, [CallerLineNumber]int callline=-1)
  C#: err.Println(string msg = "", [CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
void csmkkernel.MkErrorC.Reset ([CallerMemberName]string callfunc=null, [CallerLineNumber]int callline=-1, bool force=false)
  C#: err.Reset([CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1, bool force = false) C-API
This function clears the err and resets to MK_OK
 
MkErrorE csmkkernel.MkErrorC.Stack ([CallerMemberName]string callfunc=null, [CallerFilePath]string callfile=null, [CallerLineNumber]int callline=-1)
  C#: MkErrorE err.Stack([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
void csmkkernel.MkErrorC.StackFormat ([CallerMemberName]string callfunc=null, [CallerFilePath]string callfile=null, [CallerLineNumber]int callline=-1)
  C#: err.StackFormat([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
append an ensemble of func, file and line to the error-message
 

Detailed Description

MkErrorC - various functions to 'work' on a MkErrorS

Function Documentation

◆ Catch()

MkErrorC csmkkernel.MkErrorC.Catch ( Exception exception = null,
[CallerMemberName] string callfunc = null )
inline

C#: MkErrorC err.Catch(Exception exception = null, [CallerMemberName]string callfunc = null) C-API
convert a programming-language-error into an csmkkernel error …

Definition at line 264 of file MkErrorC.cs.

264 {
265 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
266 IntPtr __retVal__L = MkErrorCatchTmpl(mkrt, hdl, exception, callfunc_cstr);
267 Marshal.FreeHGlobal(callfunc_cstr);
268 return MkErrorC.MkErrorC_ObjNew(__retVal__L);
269 }

◆ Cleanup()

void csmkkernel.MkErrorC.Cleanup ( [CallerMemberName] string callfunc = null,
[CallerLineNumber] int callline = -1 )
inline

C#: err.Cleanup([CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1) C-API
cleanup and print unwanted active error …

Definition at line 274 of file MkErrorC.cs.

274 {
275 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
276 Mk.MkErrorCleanup(mkrt, hdl, callfunc_cstr, callline);
277 Marshal.FreeHGlobal(callfunc_cstr);
278 }
csmkkernel.MkKernel Mk

◆ Println()

void csmkkernel.MkErrorC.Println ( string msg = "",
[CallerMemberName] string callfunc = null,
[CallerLineNumber] int callline = -1 )
inline

C#: err.Println(string msg = "", [CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …

Definition at line 283 of file MkErrorC.cs.

283 {
284 IntPtr msg_cstr = Marshal.StringToHGlobalAnsi(msg);
285 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
286 Mk.MkErrorPrintln(mkrt, hdl, msg_cstr, callfunc_cstr, callline);
287 Marshal.FreeHGlobal(msg_cstr);
288 Marshal.FreeHGlobal(callfunc_cstr);
289 }

◆ Reset()

void csmkkernel.MkErrorC.Reset ( [CallerMemberName] string callfunc = null,
[CallerLineNumber] int callline = -1,
bool force = false )
inline

C#: err.Reset([CallerMemberName]string callfunc = null, [CallerLineNumber]int callline = -1, bool force = false) C-API
This function clears the err and resets to MK_OK

Definition at line 292 of file MkErrorC.cs.

292 {
293 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
294 MkErrorE errVal = Mk.MkErrorReset(mkrt, hdl, callfunc_cstr, callline, force);
295 Marshal.FreeHGlobal(callfunc_cstr);
296 MkErrorC.Check(hdl, errVal);
297 }
MkErrorE
collection for the different error-codes …

◆ Stack()

MkErrorE csmkkernel.MkErrorC.Stack ( [CallerMemberName] string callfunc = null,
[CallerFilePath] string callfile = null,
[CallerLineNumber] int callline = -1 )
inline

C#: MkErrorE err.Stack([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
check on error and if yes append an ErrorStackFormat to the error-message

Definition at line 300 of file MkErrorC.cs.

300 {
301 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
302 IntPtr callfile_cstr = Marshal.StringToHGlobalAnsi(callfile);
303 MkErrorE errVal = Mk.MkErrorStack(mkrt, hdl_null_allow, callfunc_cstr, callfile_cstr, callline);
304 Marshal.FreeHGlobal(callfunc_cstr);
305 Marshal.FreeHGlobal(callfile_cstr);
306 return errVal;
307 }

◆ StackFormat()

void csmkkernel.MkErrorC.StackFormat ( [CallerMemberName] string callfunc = null,
[CallerFilePath] string callfile = null,
[CallerLineNumber] int callline = -1 )
inline

C#: err.StackFormat([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
append an ensemble of func, file and line to the error-message

Definition at line 310 of file MkErrorC.cs.

310 {
311 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
312 IntPtr callfile_cstr = Marshal.StringToHGlobalAnsi(callfile);
313 Mk.MkErrorStackFormat(mkrt, hdl, callfunc_cstr, callfile_cstr, callline);
314 Marshal.FreeHGlobal(callfunc_cstr);
315 Marshal.FreeHGlobal(callfile_cstr);
316 }