Skip to content

PuLPException exception

Bases: PyORlibException

An exception class for handling errors related to the PuLP library.

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

Source code in pyorlib/exceptions/pulp_exception.py
class PuLPException(PyORlibException):
    """
    An exception class for handling errors related to the PuLP library.

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

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

Attributes

errors instance-attribute

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

Functions

__init__

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