30 "DDS_RETCODE_UNSUPPORTED",
31 "DDS_RETCODE_BAD_PARAMETER",
32 "DDS_RETCODE_PRECONDITION_NOT_MET",
33 "DDS_RETCODE_OUT_OF_RESOURCES",
34 "DDS_RETCODE_NOT_ENABLED",
35 "DDS_RETCODE_IMMUTABLE_POLICY",
36 "DDS_RETCODE_INCONSISTENT_POLICY",
37 "DDS_RETCODE_ALREADY_DELETED",
38 "DDS_RETCODE_TIMEOUT",
39 "DDS_RETCODE_NO_DATA",
40 "DDS_RETCODE_ILLEGAL_OPERATION" };
54 DDS::ReturnCode_t status,
57 if (status != DDS::RETCODE_OK && status != DDS::RETCODE_NO_DATA) {
58 cerr <<
"Error in " << info <<
": " <<
getErrorName(status) << endl;
71 cerr <<
"Error in " << info <<
": Creation failed: invalid handle" << endl;
const char * getErrorName(DDS::ReturnCode_t status)
const char * RetCodeName[13]
void checkStatus(DDS::ReturnCode_t status, const char *info)
void checkHandle(void *handle, const char *info)