ILOG CPLEX detects many different kinds of errors and generates exception, warnings, or error messages about them.
To query exceptions in the Concert Technology Library, use the methods:
IloInt IloCplex::Exception::getStatus() const; const char* IloException::getMessage() const;
To view warnings and error messages in the Callable Library, you must direct them either to your screen or to a log file.
CPXsetintparam()
CPX_PARAM_SCRIND
CPXsetlogfile()