Skip to main content
FRAMES NO FRAMES

Class IloCplex::Exception

Definition file: ilcplex/ilocplexi.h
Map of IloCplex::ExceptionIloCplex::ExceptionIloCplex::ExtractedConstraintExceptionIloCplex::InvalidCutExceptionIloCplex::MultipleConversionExceptionIloCplex::MultipleObjExceptionControlCallbackI::PresolvedVariableExceptionIloCplex::UnknownExtractableExceptionIloCplex::ExceptionIloAlgorithm::ExceptionIloException

The class IloCplex::Exception, derived from the nested class IloAlgorithm::Exception, is the base class of exceptions thrown by classes derived from IloCplex.

Method Summary
public IloIntgetStatus() const
Inherited Methods from Exception
Exception
Inherited Methods from IloException
end, getMessage, IloException
Method Detail

getStatus

public IloInt getStatus() const

This method returns the CPLEX error code of an exception thrown by a member of IloCplex. These error codes are detailed in the reference manual as the group optim.cplex.errorcodes.

This method may also return negative values for subclasses of IloCplex::Exception, which are not listed in the reference manual. The exceptions listed in the reference manual are always thrown as instances of IloCplex::Exception and not as an instance of one of its derived classes.