In fact, Concert Technology provides a hierarchy of exception classes that all derive from the common base class IloException. Exceptions derived from this class are the only kind of exceptions that are thrown by Concert Technology. The exceptions thrown by IloCplex objects all derive from class IloAlgorithm::Exception or IloCplex::Exception.
IloEnv env; try { // ... } catch (IloException& e) { cerr << "Concert Exception: " << e << endl; } catch (...) { cerr << "Other Exception" << endl; } env.end(); |
|