MqContextC - move and copy an error from a context …
More...
MqContextC - move and copy an error from a context …
◆ MqContextErrorCopy
#define MqContextErrorCopy |
( |
| ... | ) |
|
◆ MqContextErrorCopy_C
#define MqContextErrorCopy_C |
( |
| ... | ) |
|
◆ MqContextErrorCopy_E
#define MqContextErrorCopy_E |
( |
| ... | ) |
|
◆ MqContextErrorCopy_NULL
#define MqContextErrorCopy_NULL |
( |
| ... | ) |
|
◆ MqContextErrorFORMAT_0
#define MqContextErrorFORMAT_0 |
( |
| ) |
|
◆ MqContextErrorMove
#define MqContextErrorMove |
( |
| ... | ) |
|
◆ MqContextErrorMove_C
#define MqContextErrorMove_C |
( |
| ... | ) |
|
◆ MqContextErrorMove_E
#define MqContextErrorMove_E |
( |
| ... | ) |
|
◆ MqContextErrorMove_NULL
#define MqContextErrorMove_NULL |
( |
| ... | ) |
|
◆ MqContextErrorCopy_RT()
copy a MkErrorS from the sourceCtx to the targetCtx …
In ccmqmsgque the a MkRuntimeC is only one error-object per thread but this error-object has also addiitional attributes to identify the source of the error. In addition the ccmqmsgque has also an extended-error-object libmqmsgque::MqErrorS which also has error-specific-attributes. The MqContextErrorCopy is used to copy an error frome sourceCtx to targetCtx and keep the additional attributes in sync.
- Note
- by default… every error set in a slave is also set in the master.
- by default… the error is only copied if sourceCtx and targetCtx are different.
- by default… the error is not copied if targetCtx libmqmsgque::MqConfigS::master of sourceCtx.
- by default… the copy only happen if sourceCtx has an error.
- on copy… the error of sourceCtx will be reset.
- See also
- MqContextErrorMove
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| targetCtx | the MqContextC object and the target of the error |
| sourceCtx | the MqContextC object and the source of the error |
◆ MqContextErrorMove_RT()
move a MkErrorS from the sourceCtx to the targetCtx …
- Note
- by default… every error set in a slave is also set in the master.
- by default… the error is only copied if sourceCtx and targetCtx are different.
- by default… the error is not copied if targetCtx libmqmsgque::MqConfigS::master of sourceCtx.
- by default… the copy only happen if sourceCtx has an error.
- on copy… the error of sourceCtx will be reset.
- See also
- MqContextErrorCopy
- Parameters
-
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
| targetCtx | the MqContextC object and the target of the error |
| sourceCtx | the MqContextC object and the source of the error and cleared |