MkErrorC - various functions to set and check a 'signal' on a MkErrorS … More...
Functions | |
void | MkErrorSetCONTINUE_RT (MK_RT mkrt, MK_ERR const err) |
signal end of processing in an MqMqEventIF callback … | |
enum MkErrorE | MkErrorSetEXIT_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const callfunc) |
finish the current callback, return to toplevel and MqExit the application … | |
enum MkErrorE | MkErrorSetSOCKET_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const detail, MK_STRN const callfunc) |
create SOCKET-DOWN error … | |
enum MkErrorE | MkErrorSetABORT_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const detail, MK_STRN const callfunc) |
send the ABORT signal to the calling stack… | |
void | MkErrorSetCode_RT (MK_RT mkrt, MK_ERR const err, enum MkErrorE code) |
set the MkErrorS::code value … | |
bool | MkErrorIsSOCKET (MK_ERRN const err) |
check on SOCKET-DOWN error … | |
bool | MkErrorIsABORT (MK_ERRN const err) |
check on ABORT signal … | |
bool | MkErrorIsTIMEOUT (MK_ERRN const err) |
check on TIMEOUT error … | |
bool | MkErrorIsEXIT (MK_ERR const err) |
check on APPLICATION-EXIT error … | |
MkErrorC - various functions to set and check a 'signal' on a MkErrorS …
#define MkErrorIsABORT_0E | ( | ) |
Definition at line 1219 of file kernel_overload_mk.h.
#define MkErrorIsABORT_1M | ( | m | ) |
Definition at line 1220 of file kernel_overload_mk.h.
#define MkErrorIsEXIT_0E | ( | ) |
Definition at line 1221 of file kernel_overload_mk.h.
#define MkErrorIsEXIT_1M | ( | m | ) |
Definition at line 1222 of file kernel_overload_mk.h.
#define MkErrorIsSOCKET_0E | ( | ) |
Definition at line 1223 of file kernel_overload_mk.h.
#define MkErrorIsSOCKET_1M | ( | m | ) |
Definition at line 1224 of file kernel_overload_mk.h.
#define MkErrorIsTIMEOUT_0E | ( | ) |
Definition at line 1225 of file kernel_overload_mk.h.
#define MkErrorIsTIMEOUT_1M | ( | m | ) |
Definition at line 1226 of file kernel_overload_mk.h.
#define MkErrorSetABORT | ( | ... | ) |
Definition at line 1228 of file kernel_overload_mk.h.
#define MkErrorSetABORT_0E | ( | ) |
Definition at line 1235 of file kernel_overload_mk.h.
#define MkErrorSetABORT_1 | ( | err | ) |
Definition at line 1234 of file kernel_overload_mk.h.
#define MkErrorSetABORT_1E | ( | detail | ) |
Definition at line 1232 of file kernel_overload_mk.h.
#define MkErrorSetABORT_1M | ( | err | ) |
Definition at line 1236 of file kernel_overload_mk.h.
#define MkErrorSetABORT_2 | ( | err, | |
detail ) |
Definition at line 1231 of file kernel_overload_mk.h.
#define MkErrorSetABORT_2E | ( | ... | ) |
Definition at line 1229 of file kernel_overload_mk.h.
#define MkErrorSetABORT_2M | ( | err, | |
detail ) |
Definition at line 1233 of file kernel_overload_mk.h.
#define MkErrorSetABORT_3M | ( | m, | |
... ) |
Definition at line 1230 of file kernel_overload_mk.h.
#define MkErrorSetABORT_C | ( | ... | ) |
Definition at line 1238 of file kernel_overload_mk.h.
#define MkErrorSetABORT_E | ( | ... | ) |
Definition at line 1237 of file kernel_overload_mk.h.
#define MkErrorSetABORT_NULL | ( | ... | ) |
Definition at line 1227 of file kernel_overload_mk.h.
#define MkErrorSetCode | ( | ... | ) |
Definition at line 1244 of file kernel_overload_mk.h.
#define MkErrorSetCode_1E | ( | ... | ) |
Definition at line 1245 of file kernel_overload_mk.h.
#define MkErrorSetCode_2M | ( | m, | |
... ) |
Definition at line 1246 of file kernel_overload_mk.h.
#define MkErrorSetCode_NULL | ( | ... | ) |
Definition at line 1243 of file kernel_overload_mk.h.
#define MkErrorSetCONTINUE | ( | ... | ) |
Definition at line 1240 of file kernel_overload_mk.h.
#define MkErrorSetCONTINUE_0E | ( | ) |
Definition at line 1241 of file kernel_overload_mk.h.
#define MkErrorSetCONTINUE_0E | ( | ) |
Definition at line 10971 of file LibMkKernel_mk.h.
#define MkErrorSetCONTINUE_1M | ( | m | ) |
Definition at line 1242 of file kernel_overload_mk.h.
#define MkErrorSetCONTINUE_NULL | ( | ... | ) |
Definition at line 1239 of file kernel_overload_mk.h.
#define MkErrorSetEXIT | ( | ... | ) |
Definition at line 1248 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_0E | ( | ) |
Definition at line 1252 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_1 | ( | err | ) |
Definition at line 1251 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_1E | ( | ... | ) |
Definition at line 1249 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_1M | ( | err | ) |
Definition at line 1253 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_2M | ( | m, | |
... ) |
Definition at line 1250 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_C | ( | ... | ) |
Definition at line 1255 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_E | ( | ... | ) |
Definition at line 1254 of file kernel_overload_mk.h.
#define MkErrorSetEXIT_NULL | ( | ... | ) |
Definition at line 1247 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET | ( | ... | ) |
Definition at line 1257 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_0E | ( | ) |
Definition at line 1264 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_1 | ( | err | ) |
Definition at line 1263 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_1E | ( | detail | ) |
Definition at line 1261 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_1M | ( | err | ) |
Definition at line 1265 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_2 | ( | err, | |
detail ) |
Definition at line 1260 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_2E | ( | ... | ) |
Definition at line 1258 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_2M | ( | err, | |
detail ) |
Definition at line 1262 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_3M | ( | m, | |
... ) |
Definition at line 1259 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_C | ( | ... | ) |
Definition at line 1267 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_E | ( | ... | ) |
Definition at line 1266 of file kernel_overload_mk.h.
#define MkErrorSetSOCKET_NULL | ( | ... | ) |
Definition at line 1256 of file kernel_overload_mk.h.
bool MkErrorIsABORT | ( | MK_ERRN const | err | ) |
check on ABORT signal …
bool MkErrorIsEXIT | ( | MK_ERR const | err | ) |
check on APPLICATION-EXIT error …
The exit-error-object is made for two resons:
The link-target-abnormal-exit can only occur for functions that perform a network-request, such as:
The aim of this function is to react to an exit-error-object and is used to ignore the error with an ErrorReset and then later to re-establish a connection with a MqLinkConnect.
example/java/Filter4.java
exampleExample "C"
: catch and ignore an EXIT return-code
bool MkErrorIsSOCKET | ( | MK_ERRN const | err | ) |
check on SOCKET-DOWN error …
bool MkErrorIsTIMEOUT | ( | MK_ERRN const | err | ) |
check on TIMEOUT error …
enum MkErrorE MkErrorSetABORT_RT | ( | MK_RT | mkrt, |
MK_ERR const | err, | ||
MK_STRN const | detail, | ||
MK_STRN const | callfunc ) |
send the ABORT signal to the calling stack…
The ABORT-signal is used to disrupt the current execution like an error and unwind the calling stack. The MkErrorIsABORT is used to detect the ABORT-signal and MkErrorReset is used to clear the ABORT-signal
[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] | detail | add additional detail information |
[in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, null = resolve-own-name) |
set the MkErrorS::code value …
signal end of processing in an MqMqEventIF callback …
finish the current callback, return to toplevel and MqExit the application …
To exit a application in a callback is a difficult task because the code is in-duty. To achieve this goal a special exit-error-object is created and reported to the toplevel. If a transaction is ongoing the MqSendRETURN is not called and thus the transaction is not finished. The calling application is informed later by a socket-down event. This only works for a parent-context. An exit in a child-context is ignored.
Example: raise an EXIT-exception in an ruby-service:
[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, null = resolve-own-name) |
enum MkErrorE MkErrorSetSOCKET_RT | ( | MK_RT | mkrt, |
MK_ERR const | err, | ||
MK_STRN const | detail, | ||
MK_STRN const | callfunc ) |
create SOCKET-DOWN 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] | detail | add additional detail information |
[in] | callfunc | a user-defined postfix to identify the calling-function or the environment (default = name-of-function, null = resolve-own-name) |