cciRethrowLastException

Start of changeRe-throws the last exception generated on the current thread. It is used to pass the exception back to the message broker for further handling. Note that, similar to a C exit call, cciRethrowLastException does not return in this case.End of change

Syntax

void cciRethrowLastException(int* returnCode);

Parameters

returnCode
The return code from the function (output). The possible return code is CCI_NO_EXCEPTION_EXISTS

Return values

None. If an error occurs, the returnCode parameter indicates the reason for the error.

Example

 if (rc == CCI_EXCEPTION) {
      cciRethrowLastException(&rc);
    }
Related concepts
User-defined extensions