cciGetLastExceptionData

Gets diagnostic information about the last exception generated. Information about the last exception generated on the current thread is returned in a CCI_EXCEPTION_ST output structure. The user-defined extension can use this function to determine whether any recovery is required when a utility function returns an error code.

This function might be called when a utility function has indicated that an exception occurred by setting returnCode to CCI_EXCEPTION.

Syntax

void* cciGetLastExceptionData(
  int*               returnCode,
  CCI_EXCEPTION_ST*  exception_st);

Parameters

returnCode
The return code from the function (output).
exception_st
Specifies the address of a CCI_EXCEPTION_ST structure to receive data about the last exception (output).

Return values

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

Example

      memset(&exception_st, 0, sizeof(exception_st));
          cciGetLastExceptionData(&rc, &exception_st);
Related concepts
User-defined extensions