| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |
An exception is thrown; it is not allocated in a Concert Technology environment; it is not allocated on the C++ heap. It is not necessary for you as a programmer to delete an exception explicitly. Instead, the system calls the constructor of the exception to create it, and the system calls the destructor of the exception to delete it.
When exceptions are enabled on a platform that supports C++ exceptions, an instance of a class of Concert Technology is able to throw an exception in case of error. On platforms that do not support C++ exceptions, it is possible for Concert Technology to exit in case of error.
Programming hint: Throwing and catching exceptions
Exceptions are thrown by value. They are not allocated on the C++ heap, nor in a Concert
Technology environment. The correct way to catch an exception is to catch a reference to the
error (indicated by the ampersand &), like this:
catch(IloException& oops);