This function re-throws the last exception that has been generated on the current thread. It is used to pass the exception back to the integration node for further handling. The function, like a C exit call, does not return to the caller.
void cciRethrowLastException(int* returnCode);
None. If an error occurs, the returnCode parameter indicates the reason for the error.
if (rc == CCI_EXCEPTION) {
cciRethrowLastException(&rc);
}