Skip to content

ModelException exception

Bases: PyORlibException

An exception class for handling errors related to the execution or handling of an optimization model.

Source code in pyorlib/exceptions/model_exception.py
class ModelException(PyORlibException):
    """
    An exception class for handling errors related to the execution
    or handling of an optimization model.
    """

    def __init__(self, message: str = "Model exception"):
        super().__init__(message)

Attributes

errors instance-attribute

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

Functions

__init__

__init__(message: str = 'Model exception')
Source code in pyorlib/exceptions/model_exception.py
def __init__(self, message: str = "Model exception"):
    super().__init__(message)