Using the vsmCgGetLastErrorString()

This function returns a text description of the most recent error. If there has not been an error, a NULL pointer is returned.

const char* vsmCgGetLastErrorString( IN SIM_STATE * hSim)