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.
The traceText that is associated with the exception will be converted to a char* if the char* is US-ASCII. If the traceText is in another language, use cciGetLastExceptionDataW and its associated CCI_EXCEPTION_WIDE_ST structure which stores the traceText as UTF-16.
If the exception has been raised by the broker or by cciThrowExceptionW, the traceText element of the CCI_EXCEPTION_ST structure will be an empty string.
None. If an error occurs, the returnCode parameter indicates the reason for the error.
typedef struct exception_st { int versionId; /* Structure version identification */ int type; /* Type of exception */ int messageNumber; /* Message number */ int insertCount; /* Number of message inserts */ CCI_STRING_ST inserts[CCI_MAX_EXCEPTION_INSERTS]; /* Array of message insert areas */ const char* fileName; /* Source: file name */ int lineNumber; /* Source: line number in file */ const char* functionName; /* Source: function name */ const char* traceText; /* Trace text associated with exception */ CCI_STRING_ST objectName; /* Object name */ CCI_STRING_ST objectType; /* Object type */ } CCI_EXCEPTION_ST; CCI_EXCEPTION_ST exception_st = malloc(sizeof(CCI_EXCEPTION_ST)); int rc = 0; memset(&exception_st,0,sizeof(exception_st)); cciGetLastExceptionData(&rc, &exception_st);
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
as08551_ |