theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Raise_PY_API

MkErrorC - various functions to 'raise' a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Raise_PY_API:

Functions

static OT_ProcRet pymkkernel_MkErrorC_NoRaise (MkErrorC_ARGS)
  Python: MkErrorC err.NoRaise() C-API
ignore the next return of MK_ERROR and do not raise an target-language-exception
 
static OT_ProcRet pymkkernel_MkErrorC_AppendC (MkErrorC_ARGS)
  Python: err.AppendC(message:string) C-API
append the message to the MkErrorS::text
 
static OT_ProcRet pymkkernel_MkErrorC_Raise (MkErrorC_ARGS)
  Python: err.Raise() C-API
convert an pymkkernel error into an programming-language-error and raise afterwards. …
 
static OT_ProcRet pymkkernel_MkErrorC_SetC (MkErrorC_ARGS)
  Python: err.SetC(message:string, ?callfunc:string="MK_NULL"?, ?errnum:int32=-1?) C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
static OT_ProcRet pymkkernel_MkErrorC_PanicC (OtClass_ARGS)
  Python: [static] MkErrorC.PanicC(fmtobj:MkObjectC, callfunc:string, errnum:int32, message:string) C-API
do a panic with string as argument …
 
static OT_ProcRet pymkkernel_MkErrorC_PanicDEFAULT (OtClass_ARGS)
  Python: [static] MkErrorC.PanicDEFAULT(?fmtobj:MkObjectC=None?, ?callfunc:string="MK_NULL"?) C-API
make panic from MkErrorDEFAULT_RT …
 

Detailed Description

MkErrorC - various functions to 'raise' a MkErrorS

An error is "raised" by naming the MkErrorS::text and changing the MkErrorS::code to MK_ERROR.

Function Documentation

◆ pymkkernel_MkErrorC_AppendC()

static OT_ProcRet pymkkernel_MkErrorC_AppendC ( MkErrorC_ARGS )
static

Python: err.AppendC(message:string) C-API
append the message to the MkErrorS::text

Definition at line 558 of file MkErrorC_py.c.

558 {
561 MK_STRN message = 0;
564 MkErrorAppendC (hdl, message);
566 goto end;
567 error:
569 end:
571}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
Definition MkErrorC_py.c:23
#define AppendC_doc
#define MkErrorAppendC(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ pymkkernel_MkErrorC_NoRaise()

static OT_ProcRet pymkkernel_MkErrorC_NoRaise ( MkErrorC_ARGS )
static

Python: MkErrorC err.NoRaise() C-API
ignore the next return of MK_ERROR and do not raise an target-language-exception

Definition at line 542 of file MkErrorC_py.c.

542 {
546 MK_ERR retVal = MkErrorNoRaise (hdl);
547 OT_retObj_SET_ERR(retVal);
548 goto end;
549 error:
551 end:
553}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_ERR(nat)
#define NoRaise_doc
#define MkErrorNoRaise(...)
The data-type to store and handle the error-condition …

◆ pymkkernel_MkErrorC_PanicC()

static OT_ProcRet pymkkernel_MkErrorC_PanicC ( OtClass_ARGS )
static

Python: [static] MkErrorC.PanicC(fmtobj:MkObjectC, callfunc:string, errnum:int32, message:string) C-API
do a panic with string as argument …

Definition at line 612 of file MkErrorC_py.c.

612 {
615 MK_OBJN fmtobj = NULL;
617 MK_STRN callfunc = NULL;
619 MK_I32 errnum = -1;
621 MK_STRN message = 0;
624 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
625 MkPanicC (fmtobj, callfunc, errnum, message);
627 goto end;
628 error:
630 end:
633}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_FRAME_CLEANUP
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_SETUP_hdl_static
Definition MkErrorC_py.c:28
#define PanicC_doc
#define MkPanicC(...)
#define MK_NULL_YES
flag, allow NULL
signed int MK_I32
4 byte integer data-type
static bool MkSysStringIsNULL(MK_STRN str)
test if string is NULL or EMPTY …
#define OT_CHECK_OBJN(val, nullB)
object header …

◆ pymkkernel_MkErrorC_PanicDEFAULT()

static OT_ProcRet pymkkernel_MkErrorC_PanicDEFAULT ( OtClass_ARGS )
static

Python: [static] MkErrorC.PanicDEFAULT(?fmtobj:MkObjectC=None?, ?callfunc:string="MK_NULL"?) C-API
make panic from MkErrorDEFAULT_RT …

Definition at line 636 of file MkErrorC_py.c.

636 {
639 MK_OBJN fmtobj = NULL;
641 MK_STRN callfunc = NULL;
644 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
645 MkPanicDEFAULT (fmtobj, callfunc);
647 goto end;
648 error:
650 end:
653}
#define PanicDEFAULT_doc
#define MkPanicDEFAULT(...)

◆ pymkkernel_MkErrorC_Raise()

static OT_ProcRet pymkkernel_MkErrorC_Raise ( MkErrorC_ARGS )
static

Python: err.Raise() C-API
convert an pymkkernel error into an programming-language-error and raise afterwards. …

Definition at line 574 of file MkErrorC_py.c.

574 {
578 MkErrorC_Check(hdl,MkErrorRaise (hdl));
580 goto end;
581 error:
583 end:
585}
#define MkErrorC_Check(mng, PROC)
#define Raise_doc
#define MkErrorRaise(...)

◆ pymkkernel_MkErrorC_SetC()

static OT_ProcRet pymkkernel_MkErrorC_SetC ( MkErrorC_ARGS )
static

Python: err.SetC(message:string, ?callfunc:string="MK_NULL"?, ?errnum:int32=-1?) C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number

Definition at line 588 of file MkErrorC_py.c.

588 {
591 MK_STRN message = 0;
593 MK_STRN callfunc = NULL;
595 MK_I32 errnum = -1;
598 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
599 MkErrorC_Check(hdl,MkErrorSetC (hdl, message, callfunc, errnum));
601 goto end;
602 error:
604 end:
607}
#define SetC_doc
#define MkErrorSetC(...)