Skip to content

CplexException exception

Bases: PyORlibException

An exception class for handling errors related to the IBM ILOG CPLEX optimization library.

The CplexException class is a subclass of the CoreException class and is used to handle exceptions specific to the CPLEX library.

Source code in pyorlib/exceptions/cplex_exception.py
class CplexException(PyORlibException):
    """
    An exception class for handling errors related to the IBM ILOG CPLEX optimization library.

    The CplexException class is a subclass of the CoreException class and is used to handle
    exceptions specific to the CPLEX library.
    """

    def __init__(self, message: str = "CPLEX Exception"):
        super().__init__(message)

Attributes

errors instance-attribute

errors: str | List[str] = errors if errors else __name__

Functions

__init__

__init__(message: str = 'CPLEX Exception')
Source code in pyorlib/exceptions/cplex_exception.py
def __init__(self, message: str = "CPLEX Exception"):
    super().__init__(message)