Overview | Group | Tree | Graph | Index | Concepts |
The class IloMutexProblem
is part of the hierarchy of classes
representing exceptions in Concert Technology. Concert Technology uses instances of
this class when an error occurs with respect to a mutex, an instance of
IloFastMutex
.
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 IloMutexProblem
makes it possible for Concert Technology to throw an
exception in case of error. On platforms that do not support C++ exceptions, an
instance of this class makes it possible for Concert Technology to exit in case of
error.
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(IloMutexProblem& error);
See Also:
Constructor Summary | |
---|---|
public | IloMutexProblem(const char *) |
Constructor Detail |
---|
This constructor creates an instance of IloMutexProblem to represent an exception in case of an error involving a mutex. This instance is not allocated on C++ heap; it is not allocated in a Concert Technology environment either.