theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Error_JV_API

MqContextC - move and copy an error from a contextMore...

+ Collaboration diagram for MqContextC_Error_JV_API:

Functions

native MkErrorC jvmqmsgque.MqContextC.ErrorFORMAT ()
  Java: MkErrorC fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC
 
native MkErrorE jvmqmsgque.MqContextC.ErrorCopy (MqContextC sourceCtx)
  Java: MkErrorE targetCtx.ErrorCopy(MqContextC sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx
 
native MkErrorE jvmqmsgque.MqContextC.ErrorMove (MqContextC sourceCtx)
  Java: MkErrorE targetCtx.ErrorMove(MqContextC sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorFORMAT (JNIEnv *env, jobject self)
  Java: MkErrorC fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorCopy (JNIEnv *env, jobject self, jobject sourceCtx)
  Java: MkErrorE targetCtx.ErrorCopy(MqContextC sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorMove (JNIEnv *env, jobject self, jobject sourceCtx)
  Java: MkErrorE targetCtx.ErrorMove(MqContextC sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx
 

Detailed Description

MqContextC - move and copy an error from a context

Function Documentation

◆ ErrorCopy()

native MkErrorE jvmqmsgque.MqContextC.ErrorCopy ( MqContextC sourceCtx)

Java: MkErrorE targetCtx.ErrorCopy(MqContextC sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx

◆ ErrorFORMAT()

native MkErrorC jvmqmsgque.MqContextC.ErrorFORMAT ( )

Java: MkErrorC fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC

◆ ErrorMove()

native MkErrorE jvmqmsgque.MqContextC.ErrorMove ( MqContextC sourceCtx)

Java: MkErrorE targetCtx.ErrorMove(MqContextC sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx

◆ Java_jvmqmsgque_MqContextC_ErrorCopy()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorCopy ( JNIEnv * env,
jobject self,
jobject sourceCtx )

Java: MkErrorE targetCtx.ErrorCopy(MqContextC sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx

Definition at line 843 of file MqContextC_jv.c.

843 {
844 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",self);
845 JavaErrorCheck;
846 MkRtSetup_X(hdl);
847 MQ_CTXN sourceCtx_hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",sourceCtx);
848 JavaErrorCheck;
849 enum MkErrorE errVal = MqContextErrorCopy(hdl, sourceCtx_hdl);
850 jobject __retVal__S = MK(pGetEnumFromString)(env,MK(Class_MkErrorE),"Ljvmqmsgque/MkErrorE;",MkErrorE_ToString(errVal));
851 return __retVal__S;
852error:
853 return 0;
854}
MkErrorE
MK_STRN MkErrorE_ToString(enum MkErrorE value)
#define MkRtSetup_X(x)
const struct MqContextS * MQ_CTXN
class-shortcut for const struct MqContextS *, all const shortcut using the XX_YYYC syntax (only for p...
#define MqContextErrorCopy(...)
PUBLIC data structure for the jvmqmsgque-specific-data

◆ Java_jvmqmsgque_MqContextC_ErrorFORMAT()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorFORMAT ( JNIEnv * env,
jobject self )

Java: MkErrorC fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC

Definition at line 829 of file MqContextC_jv.c.

829 {
830 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl__null_allow(env,self);
831 JavaErrorCheck;
832 MkRtSetup_X(hdl);
833 MK_ERR __retVal__L = MqContextErrorFORMAT(hdl);
834 jobject __retVal__S = MK(MkErrorC_ObjNew)(MK_RT_CALL env,__retVal__L);
835 return __retVal__S;
836error:
837 return 0;
838}
#define MK_RT_CALL
static MK_ERR MqContextErrorFORMAT(MQ_CTXN const fmtobj)
helper used to access MkErrorDEFAULT from MqContextC

◆ Java_jvmqmsgque_MqContextC_ErrorMove()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ErrorMove ( JNIEnv * env,
jobject self,
jobject sourceCtx )

Java: MkErrorE targetCtx.ErrorMove(MqContextC sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx

Definition at line 857 of file MqContextC_jv.c.

857 {
858 MQ_CTXN hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",self);
859 JavaErrorCheck;
860 MkRtSetup_X(hdl);
861 MQ_CTXN sourceCtx_hdl = (MQ_CTXN)pObj2Hdl(env,"MqContextC",sourceCtx);
862 JavaErrorCheck;
863 enum MkErrorE errVal = MqContextErrorMove(hdl, sourceCtx_hdl);
864 jobject __retVal__S = MK(pGetEnumFromString)(env,MK(Class_MkErrorE),"Ljvmqmsgque/MkErrorE;",MkErrorE_ToString(errVal));
865 return __retVal__S;
866error:
867 return 0;
868}
#define MqContextErrorMove(...)