MkErrorC - various functions to 'raise' a MkErrorS … More...
Macros | |
#define | MkPanicVL_5M(errobj, callfunc, errnum, printfmt, var_list) |
#define | MkPanicV_4M(errobj, callfunc, errnum, printfmt, ...) |
#define | MkPanicV_2M(x, printfmt, ...) |
#define | MkPanicC_4M(errobj, callfunc, errnum, message) |
#define | MkPanicC_2M(x, message) |
#define | MkPanicSYS(mngx) |
do a panic with a system error message … | |
#define | MkErrorSetC_1XS(message) |
#define | MkErrorSetC_2E_E(caller, message) |
#define | MkErrorSetC_4_NULL(...) |
#define | MkErrorSetC_3_NULL(...) |
#define | MkErrorSetC_2_NULL(msg, pfx) |
#define | MkErrorSetC_1_NULL(msg) |
#define | MkErrorSetC_4M_NULL(m, ...) |
#define | MkErrorSetC_3M_NULL(m, msg, pfx) |
#define | MkErrorSetC_2M_NULL(m, msg) |
#define | MkErrorSetV_4EO_NULL(o, ...) |
#define | MkErrorSetV_4M_NULL(m, ...) |
#define | MkErrorSetV_2M_NULL(m, ...) |
#define | MkErrorSetV_2X(x, ...) |
#define | MkErrorSetV_1_NULL(printfmt, ...) |
#define | MkErrorSetV_1XS(printfmt, ...) |
#define | MkErrorSetV_2E_E(caller, printfmt, ...) |
#define | MkErrorSet_ObjectIsNullError(m, printfmt, ...) |
Functions | |
MK_EXTERN void | MkPanicVL_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list) |
do a panic with a vararg-list as argument … | |
MK_EXTERN void | MkPanicV_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...) |
do a panic with a vararg as argument … | |
MK_EXTERN void | MkPanicC_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_STRN const message) |
do a panic with string as argument … | |
MK_EXTERN void | MkDisasterSignal (MK_I32 signal) |
called if something get REALLY wrong … | |
MK_EXTERN void | MkErrorAppendVL_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt, va_list var_list) |
append a va_list string to the MkErrorC … | |
MK_EXTERN void | MkErrorAppendV_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt,...) |
append a vararg string to the MkErrorC … | |
MK_EXTERN void | MkErrorAppendC_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message) |
append the message to the MkErrorS::text … | |
MK_EXTERN MK_ERR | MkErrorNoRaise_RT (MK_RT mkrt, MK_ERR const err) |
ignore the next return of MK_ERROR and do not raise an target-language-exception … | |
MK_EXTERN enum MkErrorE | MkErrorSetR_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message, enum MkErrorE const errcode, MK_I32 const errnum, MK_MNG const errctx) |
set the MkErrorC and raise the error … | |
MK_EXTERN enum MkErrorE | MkErrorSetE_RT (MK_RT mkrt, MK_ERR const err, MK_ERR const newerr) |
set the MkErrorC from a MkErrorC copy and raise an error … | |
MK_EXTERN enum MkErrorE | MkErrorSetC_RT (MK_RT mkrt, MK_ERR err, MK_STRN const message, MK_STRN const callfunc, MK_I32 const errnum) |
'set' and 'raise' the MkErrorC using a string-message and a errnum-number … | |
MK_EXTERN enum MkErrorE | MkErrorSetVL_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list) |
'set' and 'raise' the MkErrorC using a vararg-list message … | |
MK_EXTERN enum MkErrorE | MkErrorSetV_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...) |
set the MkErrorS object using a format string argument list and raise an error … | |
MkErrorC - MkErrorC_Raise_C_API - overload | |
#define | MkErrorNoRaise_NULL(...) |
#define | MkErrorNoRaise(...) |
#define | MkErrorNoRaise_0E() |
#define | MkErrorNoRaise_1M(m) |
#define | MkErrorAppendC_NULL(...) |
#define | MkErrorAppendC(...) |
#define | MkErrorAppendC_1E(...) |
#define | MkErrorAppendC_2M(m, ...) |
#define | MkErrorAppendV_NULL(...) |
#define | MkErrorAppendV(...) |
#define | MkErrorAppendV_1E(...) |
#define | MkErrorAppendV_2M(m, ...) |
#define | MkErrorAppendVL_NULL(...) |
#define | MkErrorAppendVL(...) |
#define | MkErrorAppendVL_2E(...) |
#define | MkErrorAppendVL_3M(m, ...) |
#define | MkErrorRaise_NULL(...) |
#define | MkErrorRaise(...) |
#define | MkErrorRaise_0E() |
#define | MkErrorRaise_1M(m) |
#define | MkErrorRaise_E(...) |
#define | MkErrorRaise_C(...) |
#define | MkErrorSetC_NULL(...) |
#define | MkErrorSetC(...) |
#define | MkErrorSetC_3E(...) |
#define | MkErrorSetC_4M(m, ...) |
#define | MkErrorSetC_3(err, message, callfunc) |
#define | MkErrorSetC_2E(message, callfunc) |
#define | MkErrorSetC_3M(err, message, callfunc) |
#define | MkErrorSetC_2(err, message) |
#define | MkErrorSetC_1E(message) |
#define | MkErrorSetC_2M(err, message) |
#define | MkErrorSetC_E(...) |
#define | MkErrorSetC_C(...) |
#define | MkErrorSetE_NULL(...) |
#define | MkErrorSetE(...) |
#define | MkErrorSetE_1E(...) |
#define | MkErrorSetE_2M(m, ...) |
#define | MkErrorSetE_E(...) |
#define | MkErrorSetE_C(...) |
#define | MkErrorSetR_NULL(...) |
#define | MkErrorSetR(...) |
#define | MkErrorSetR_4E(...) |
#define | MkErrorSetR_5M(m, ...) |
#define | MkErrorSetR_4(err, message, errcode, errnum) |
#define | MkErrorSetR_3E(message, errcode, errnum) |
#define | MkErrorSetR_4M(err, message, errcode, errnum) |
#define | MkErrorSetR_3(err, message, errcode) |
#define | MkErrorSetR_2E(message, errcode) |
#define | MkErrorSetR_3M(err, message, errcode) |
#define | MkErrorSetR_2(err, message) |
#define | MkErrorSetR_1E(message) |
#define | MkErrorSetR_2M(err, message) |
#define | MkErrorSetR_E(...) |
#define | MkErrorSetR_C(...) |
#define | MkErrorSetV_NULL(...) |
#define | MkErrorSetV(...) |
#define | MkErrorSetV_3E(...) |
#define | MkErrorSetV_4M(m, ...) |
#define | MkErrorSetV_3(err, callfunc, printfmt, ...) |
#define | MkErrorSetV_2E(callfunc, printfmt, ...) |
#define | MkErrorSetV_3M(err, callfunc, printfmt, ...) |
#define | MkErrorSetV_2(err, printfmt, ...) |
#define | MkErrorSetV_1E(printfmt, ...) |
#define | MkErrorSetV_2M(err, printfmt, ...) |
#define | MkErrorSetV_E(...) |
#define | MkErrorSetV_C(...) |
#define | MkErrorSetVL_NULL(...) |
#define | MkErrorSetVL(...) |
#define | MkErrorSetVL_4E(...) |
#define | MkErrorSetVL_5M(m, ...) |
#define | MkErrorSetVL_4(err, callfunc, printfmt, var_list) |
#define | MkErrorSetVL_3E(callfunc, printfmt, var_list) |
#define | MkErrorSetVL_4M(err, callfunc, printfmt, var_list) |
#define | MkErrorSetVL_3(err, printfmt, var_list) |
#define | MkErrorSetVL_2E(printfmt, var_list) |
#define | MkErrorSetVL_3M(err, printfmt, var_list) |
#define | MkErrorSetVL_E(...) |
#define | MkErrorSetVL_C(...) |
#define | MkPanicC_NULL(...) |
#define | MkPanicC(...) |
#define | MkPanicC_3(errobj, callfunc, message) |
#define | MkPanicC_2(errobj, message) |
#define | MkPanicC_1(message) |
#define | MkPanicV_NULL(...) |
#define | MkPanicV(...) |
#define | MkPanicV_3(errobj, callfunc, printfmt, ...) |
#define | MkPanicV_2(errobj, printfmt, ...) |
#define | MkPanicV_1(printfmt, ...) |
#define | MkPanicVL_NULL(...) |
#define | MkPanicVL(...) |
#define | MkPanicVL_4(errobj, callfunc, printfmt, var_list) |
#define | MkPanicVL_3(errobj, printfmt, var_list) |
#define | MkPanicVL_2(printfmt, var_list) |
MkErrorC - various functions to 'raise' a MkErrorS …
An error is "raised" by naming the MkErrorS::text and changing the MkErrorS::code to MK_ERROR.
#define MkErrorAppendC | ( | ... | ) |
Definition at line 1099 of file kernel_overload_mk.h.
#define MkErrorAppendC_1E | ( | ... | ) |
Definition at line 1100 of file kernel_overload_mk.h.
#define MkErrorAppendC_2M | ( | m, | |
... ) |
Definition at line 1101 of file kernel_overload_mk.h.
#define MkErrorAppendC_NULL | ( | ... | ) |
Definition at line 1098 of file kernel_overload_mk.h.
#define MkErrorAppendV | ( | ... | ) |
Definition at line 1103 of file kernel_overload_mk.h.
#define MkErrorAppendV_1E | ( | ... | ) |
Definition at line 1104 of file kernel_overload_mk.h.
#define MkErrorAppendV_2M | ( | m, | |
... ) |
Definition at line 1105 of file kernel_overload_mk.h.
#define MkErrorAppendV_NULL | ( | ... | ) |
Definition at line 1102 of file kernel_overload_mk.h.
#define MkErrorAppendVL | ( | ... | ) |
Definition at line 1107 of file kernel_overload_mk.h.
#define MkErrorAppendVL_2E | ( | ... | ) |
Definition at line 1108 of file kernel_overload_mk.h.
#define MkErrorAppendVL_3M | ( | m, | |
... ) |
Definition at line 1109 of file kernel_overload_mk.h.
#define MkErrorAppendVL_NULL | ( | ... | ) |
Definition at line 1106 of file kernel_overload_mk.h.
#define MkErrorNoRaise | ( | ... | ) |
Definition at line 1093 of file kernel_overload_mk.h.
#define MkErrorNoRaise_0E | ( | ) |
Definition at line 1094 of file kernel_overload_mk.h.
#define MkErrorNoRaise_1M | ( | m | ) |
Definition at line 1095 of file kernel_overload_mk.h.
#define MkErrorNoRaise_NULL | ( | ... | ) |
Definition at line 1092 of file kernel_overload_mk.h.
#define MkErrorRaise | ( | ... | ) |
Definition at line 1111 of file kernel_overload_mk.h.
#define MkErrorRaise_0E | ( | ) |
Definition at line 1112 of file kernel_overload_mk.h.
#define MkErrorRaise_1M | ( | m | ) |
Definition at line 1113 of file kernel_overload_mk.h.
#define MkErrorRaise_C | ( | ... | ) |
Definition at line 1115 of file kernel_overload_mk.h.
#define MkErrorRaise_E | ( | ... | ) |
Definition at line 1114 of file kernel_overload_mk.h.
#define MkErrorRaise_NULL | ( | ... | ) |
Definition at line 1110 of file kernel_overload_mk.h.
#define MkErrorSet_ObjectIsNullError | ( | m, | |
printfmt, | |||
... ) |
Definition at line 10776 of file LibMkKernel_mk.h.
#define MkErrorSetC | ( | ... | ) |
Definition at line 1117 of file kernel_overload_mk.h.
#define MkErrorSetC_1_NULL | ( | msg | ) |
Definition at line 10711 of file LibMkKernel_mk.h.
#define MkErrorSetC_1E | ( | message | ) |
Definition at line 1124 of file kernel_overload_mk.h.
#define MkErrorSetC_1XS | ( | message | ) |
Definition at line 10705 of file LibMkKernel_mk.h.
#define MkErrorSetC_2 | ( | err, | |
message ) |
Definition at line 1123 of file kernel_overload_mk.h.
#define MkErrorSetC_2_NULL | ( | msg, | |
pfx ) |
Definition at line 10710 of file LibMkKernel_mk.h.
#define MkErrorSetC_2E | ( | message, | |
callfunc ) |
Definition at line 1121 of file kernel_overload_mk.h.
#define MkErrorSetC_2E_E | ( | caller, | |
message ) |
Definition at line 10706 of file LibMkKernel_mk.h.
#define MkErrorSetC_2M | ( | err, | |
message ) |
Definition at line 1125 of file kernel_overload_mk.h.
#define MkErrorSetC_2M_NULL | ( | m, | |
msg ) |
Definition at line 10715 of file LibMkKernel_mk.h.
#define MkErrorSetC_3 | ( | err, | |
message, | |||
callfunc ) |
Definition at line 1120 of file kernel_overload_mk.h.
#define MkErrorSetC_3_NULL | ( | ... | ) |
Definition at line 10709 of file LibMkKernel_mk.h.
#define MkErrorSetC_3E | ( | ... | ) |
Definition at line 1118 of file kernel_overload_mk.h.
#define MkErrorSetC_3M | ( | err, | |
message, | |||
callfunc ) |
Definition at line 1122 of file kernel_overload_mk.h.
#define MkErrorSetC_3M_NULL | ( | m, | |
msg, | |||
pfx ) |
Definition at line 10714 of file LibMkKernel_mk.h.
#define MkErrorSetC_4_NULL | ( | ... | ) |
Definition at line 10708 of file LibMkKernel_mk.h.
#define MkErrorSetC_4M | ( | m, | |
... ) |
Definition at line 1119 of file kernel_overload_mk.h.
#define MkErrorSetC_4M_NULL | ( | m, | |
... ) |
Definition at line 10713 of file LibMkKernel_mk.h.
#define MkErrorSetC_C | ( | ... | ) |
Definition at line 1127 of file kernel_overload_mk.h.
#define MkErrorSetC_E | ( | ... | ) |
Definition at line 1126 of file kernel_overload_mk.h.
#define MkErrorSetC_NULL | ( | ... | ) |
Definition at line 1116 of file kernel_overload_mk.h.
#define MkErrorSetE | ( | ... | ) |
Definition at line 1129 of file kernel_overload_mk.h.
#define MkErrorSetE_1E | ( | ... | ) |
Definition at line 1130 of file kernel_overload_mk.h.
#define MkErrorSetE_2M | ( | m, | |
... ) |
Definition at line 1131 of file kernel_overload_mk.h.
#define MkErrorSetE_C | ( | ... | ) |
Definition at line 1133 of file kernel_overload_mk.h.
#define MkErrorSetE_E | ( | ... | ) |
Definition at line 1132 of file kernel_overload_mk.h.
#define MkErrorSetE_NULL | ( | ... | ) |
Definition at line 1128 of file kernel_overload_mk.h.
#define MkErrorSetR | ( | ... | ) |
Definition at line 1135 of file kernel_overload_mk.h.
#define MkErrorSetR_1E | ( | message | ) |
Definition at line 1145 of file kernel_overload_mk.h.
#define MkErrorSetR_2 | ( | err, | |
message ) |
Definition at line 1144 of file kernel_overload_mk.h.
#define MkErrorSetR_2E | ( | message, | |
errcode ) |
Definition at line 1142 of file kernel_overload_mk.h.
#define MkErrorSetR_2M | ( | err, | |
message ) |
Definition at line 1146 of file kernel_overload_mk.h.
#define MkErrorSetR_3 | ( | err, | |
message, | |||
errcode ) |
Definition at line 1141 of file kernel_overload_mk.h.
#define MkErrorSetR_3E | ( | message, | |
errcode, | |||
errnum ) |
Definition at line 1139 of file kernel_overload_mk.h.
#define MkErrorSetR_3M | ( | err, | |
message, | |||
errcode ) |
Definition at line 1143 of file kernel_overload_mk.h.
#define MkErrorSetR_4 | ( | err, | |
message, | |||
errcode, | |||
errnum ) |
Definition at line 1138 of file kernel_overload_mk.h.
#define MkErrorSetR_4E | ( | ... | ) |
Definition at line 1136 of file kernel_overload_mk.h.
#define MkErrorSetR_4M | ( | err, | |
message, | |||
errcode, | |||
errnum ) |
Definition at line 1140 of file kernel_overload_mk.h.
#define MkErrorSetR_5M | ( | m, | |
... ) |
Definition at line 1137 of file kernel_overload_mk.h.
#define MkErrorSetR_C | ( | ... | ) |
Definition at line 1148 of file kernel_overload_mk.h.
#define MkErrorSetR_E | ( | ... | ) |
Definition at line 1147 of file kernel_overload_mk.h.
#define MkErrorSetR_NULL | ( | ... | ) |
Definition at line 1134 of file kernel_overload_mk.h.
#define MkErrorSetV | ( | ... | ) |
Definition at line 1150 of file kernel_overload_mk.h.
#define MkErrorSetV_1_NULL | ( | printfmt, | |
... ) |
Definition at line 10767 of file LibMkKernel_mk.h.
#define MkErrorSetV_1E | ( | printfmt, | |
... ) |
Definition at line 1157 of file kernel_overload_mk.h.
#define MkErrorSetV_1XS | ( | printfmt, | |
... ) |
Definition at line 10770 of file LibMkKernel_mk.h.
#define MkErrorSetV_2 | ( | err, | |
printfmt, | |||
... ) |
Definition at line 1156 of file kernel_overload_mk.h.
#define MkErrorSetV_2E | ( | callfunc, | |
printfmt, | |||
... ) |
Definition at line 1154 of file kernel_overload_mk.h.
#define MkErrorSetV_2E_E | ( | caller, | |
printfmt, | |||
... ) |
Definition at line 10773 of file LibMkKernel_mk.h.
#define MkErrorSetV_2M | ( | err, | |
printfmt, | |||
... ) |
Definition at line 1158 of file kernel_overload_mk.h.
#define MkErrorSetV_2M_NULL | ( | m, | |
... ) |
Definition at line 10764 of file LibMkKernel_mk.h.
#define MkErrorSetV_2X | ( | x, | |
... ) |
Definition at line 10765 of file LibMkKernel_mk.h.
#define MkErrorSetV_3 | ( | err, | |
callfunc, | |||
printfmt, | |||
... ) |
Definition at line 1153 of file kernel_overload_mk.h.
#define MkErrorSetV_3E | ( | ... | ) |
Definition at line 1151 of file kernel_overload_mk.h.
#define MkErrorSetV_3M | ( | err, | |
callfunc, | |||
printfmt, | |||
... ) |
Definition at line 1155 of file kernel_overload_mk.h.
#define MkErrorSetV_4EO_NULL | ( | o, | |
... ) |
Definition at line 10762 of file LibMkKernel_mk.h.
#define MkErrorSetV_4M | ( | m, | |
... ) |
Definition at line 1152 of file kernel_overload_mk.h.
#define MkErrorSetV_4M_NULL | ( | m, | |
... ) |
Definition at line 10763 of file LibMkKernel_mk.h.
#define MkErrorSetV_C | ( | ... | ) |
Definition at line 1160 of file kernel_overload_mk.h.
#define MkErrorSetV_E | ( | ... | ) |
Definition at line 1159 of file kernel_overload_mk.h.
#define MkErrorSetV_NULL | ( | ... | ) |
Definition at line 1149 of file kernel_overload_mk.h.
#define MkErrorSetVL | ( | ... | ) |
Definition at line 1162 of file kernel_overload_mk.h.
#define MkErrorSetVL_2E | ( | printfmt, | |
var_list ) |
Definition at line 1169 of file kernel_overload_mk.h.
#define MkErrorSetVL_3 | ( | err, | |
printfmt, | |||
var_list ) |
Definition at line 1168 of file kernel_overload_mk.h.
#define MkErrorSetVL_3E | ( | callfunc, | |
printfmt, | |||
var_list ) |
Definition at line 1166 of file kernel_overload_mk.h.
#define MkErrorSetVL_3M | ( | err, | |
printfmt, | |||
var_list ) |
Definition at line 1170 of file kernel_overload_mk.h.
#define MkErrorSetVL_4 | ( | err, | |
callfunc, | |||
printfmt, | |||
var_list ) |
Definition at line 1165 of file kernel_overload_mk.h.
#define MkErrorSetVL_4E | ( | ... | ) |
Definition at line 1163 of file kernel_overload_mk.h.
#define MkErrorSetVL_4M | ( | err, | |
callfunc, | |||
printfmt, | |||
var_list ) |
Definition at line 1167 of file kernel_overload_mk.h.
#define MkErrorSetVL_5M | ( | m, | |
... ) |
Definition at line 1164 of file kernel_overload_mk.h.
#define MkErrorSetVL_C | ( | ... | ) |
Definition at line 1172 of file kernel_overload_mk.h.
#define MkErrorSetVL_E | ( | ... | ) |
Definition at line 1171 of file kernel_overload_mk.h.
#define MkErrorSetVL_NULL | ( | ... | ) |
Definition at line 1161 of file kernel_overload_mk.h.
#define MkPanicC | ( | ... | ) |
Definition at line 1176 of file kernel_overload_mk.h.
#define MkPanicC_1 | ( | message | ) |
Definition at line 1179 of file kernel_overload_mk.h.
#define MkPanicC_2 | ( | errobj, | |
message ) |
Definition at line 1178 of file kernel_overload_mk.h.
#define MkPanicC_2M | ( | x, | |
message ) |
Definition at line 10557 of file LibMkKernel_mk.h.
#define MkPanicC_3 | ( | errobj, | |
callfunc, | |||
message ) |
Definition at line 1177 of file kernel_overload_mk.h.
#define MkPanicC_4M | ( | errobj, | |
callfunc, | |||
errnum, | |||
message ) |
Definition at line 10554 of file LibMkKernel_mk.h.
#define MkPanicC_NULL | ( | ... | ) |
Definition at line 1175 of file kernel_overload_mk.h.
#define MkPanicSYS | ( | mngx | ) |
do a panic with a system error message …
[in] | mngx | the MkObjectS instance to work on |
Definition at line 10563 of file LibMkKernel_mk.h.
#define MkPanicV | ( | ... | ) |
Definition at line 1181 of file kernel_overload_mk.h.
#define MkPanicV_1 | ( | printfmt, | |
... ) |
Definition at line 1184 of file kernel_overload_mk.h.
#define MkPanicV_2 | ( | errobj, | |
printfmt, | |||
... ) |
Definition at line 1183 of file kernel_overload_mk.h.
#define MkPanicV_2M | ( | x, | |
printfmt, | |||
... ) |
Definition at line 10533 of file LibMkKernel_mk.h.
#define MkPanicV_3 | ( | errobj, | |
callfunc, | |||
printfmt, | |||
... ) |
Definition at line 1182 of file kernel_overload_mk.h.
#define MkPanicV_4M | ( | errobj, | |
callfunc, | |||
errnum, | |||
printfmt, | |||
... ) |
Definition at line 10530 of file LibMkKernel_mk.h.
#define MkPanicV_NULL | ( | ... | ) |
Definition at line 1180 of file kernel_overload_mk.h.
#define MkPanicVL | ( | ... | ) |
Definition at line 1186 of file kernel_overload_mk.h.
#define MkPanicVL_2 | ( | printfmt, | |
var_list ) |
Definition at line 1189 of file kernel_overload_mk.h.
#define MkPanicVL_3 | ( | errobj, | |
printfmt, | |||
var_list ) |
Definition at line 1188 of file kernel_overload_mk.h.
#define MkPanicVL_4 | ( | errobj, | |
callfunc, | |||
printfmt, | |||
var_list ) |
Definition at line 1187 of file kernel_overload_mk.h.
#define MkPanicVL_5M | ( | errobj, | |
callfunc, | |||
errnum, | |||
printfmt, | |||
var_list ) |
Definition at line 10509 of file LibMkKernel_mk.h.
#define MkPanicVL_NULL | ( | ... | ) |
Definition at line 1185 of file kernel_overload_mk.h.
called if something get REALLY wrong …
The MkDisasterSignal is called by the SIGSEGV
signal-handler after an application-crash.
sigaction
. append the message to the MkErrorS::text …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | message | the string to be displayed as message (append) |
append a vararg string to the MkErrorC …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | printfmt | is a c-string used as printf like format string |
MK_EXTERN void MkErrorAppendVL_RT | ( | MK_RT | mkrt, |
MK_ERR const | err, | ||
MK_FST const | printfmt, | ||
va_list | var_list ) |
append a va_list string to the MkErrorC …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | printfmt | is a c-string used as printf like format string |
[in] | var_list | a variable argument list object |
ignore the next return of MK_ERROR and do not raise an target-language-exception …
Many functions from the MkErrorXXX return an MkErrorE to signal that an MK_ERROR is set. The target-language react on this signal and raise an target-language-exception.
If this behaviour is not desired the ErrorNoRaise is used to suppress the next MK_ERROR return.
This feature is used to avoid the target-language-exception after ErrorSetC etc.
This is usefull if:
Example from server.c
→ create and send an background-error message
static enum MkErrorE BgError ( MQ_SERVICE_CALL_ARGS ) { MQ_CTX master = MqSlaveGetMaster(mqctx); if (master) { MK_ERR err = MkErrorNoRaise(MkErrorFORMAT_1M(master)); // MkErrorGetTextI and MkErrorSetC using the !! SAME !! memory // → need a temporary buffer "ctxbuf.buf" MkBufferSetSTR(MkBUF(&master->ctxbuf), MkErrorGetText(err)); MkErrorSetC(err, MkBUF_R(&master->ctxbuf).storage.first.C, "BGERROR", MkErrorGetNum(err)); MqSendERROR (master); } return MkErrorStack_1M_Check(mqctx); }
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
MK_EXTERN enum MkErrorE MkErrorSetC_RT | ( | MK_RT | mkrt, |
MK_ERR | err, | ||
MK_STRN const | message, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum ) |
'set' and 'raise' the MkErrorC using a string-message and a errnum-number …
The message will be formatted into a libmkkernel error-message.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) - err==NULL allowed |
[in] | message | the string to be displayed as message |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
set the MkErrorC from a MkErrorC copy and raise an error …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | newerr | the MkErrorC to be the new default-error |
MK_EXTERN enum MkErrorE MkErrorSetR_RT | ( | MK_RT | mkrt, |
MK_ERR const | err, | ||
MK_STRN const | message, | ||
enum MkErrorE const | errcode, | ||
MK_I32 const | errnum, | ||
MK_MNG const | errctx ) |
set the MkErrorC and raise the error …
This is the most basic function to set the MkErrorS object… without formatting the MkErrorS::text message into a libmkkernel error-message.
This function is usefull to integrate into a uplevel-programming-language error-handling feature.
Example: error-handling in a uplevel-programming-language Callback:
"MkError" -> converted into "Prg-Lng-Error" -> converted back into "MkError"
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | message | the string to be displayed as message |
[in] | errnum | the error number used as exit-code as well |
[in] | errcode | only values from MkErrorE are allowed |
[in] | errctx | The context where the error occurred. |
MK_EXTERN enum MkErrorE MkErrorSetV_RT | ( | MK_RT | mkrt, |
MK_ERR | err, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum, | ||
MK_FST const | printfmt, | ||
... ) |
set the MkErrorS object using a format string argument list and raise an error …
The string argument list will be formatted into a libmkkernel error-message.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
[in] | printfmt | is a c-string used as printf like format string |
MK_EXTERN enum MkErrorE MkErrorSetVL_RT | ( | MK_RT | mkrt, |
MK_ERR | err, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum, | ||
MK_FST const | printfmt, | ||
va_list | var_list ) |
'set' and 'raise' the MkErrorC using a vararg-list message …
The var_list will be formatted into a libmkkernel error-message.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
[in] | printfmt | is a c-string used as printf like format string |
[in] | var_list | a variable argument list object |
MK_EXTERN void MkPanicC_RT | ( | MK_RT | mkrt, |
MK_OBJN const | errobj, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum, | ||
MK_STRN const | message ) |
do a panic with string as argument …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | errobj | a managed object used to identify and format the error-message |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
message | the string to be displayed |
MK_EXTERN void MkPanicV_RT | ( | MK_RT | mkrt, |
MK_OBJN const | errobj, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum, | ||
MK_FST const | printfmt, | ||
... ) |
do a panic with a vararg as argument …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | errobj | a managed object used to identify and format the error-message |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
[in] | printfmt | is a c-string used as printf like format string |
MK_EXTERN void MkPanicVL_RT | ( | MK_RT | mkrt, |
MK_OBJN const | errobj, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | errnum, | ||
MK_FST const | printfmt, | ||
va_list | var_list ) |
do a panic with a vararg-list as argument …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | errobj | a managed object used to identify and format the error-message |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | errnum | the error number used as exit-code as well |
[in] | printfmt | is a c-string used as printf like format string |
[in] | var_list | a variable argument list object |