Skip to content

ORToolsException exception

Bases: PyORlibException

An exception class for handling errors related to the OR-Tools library.

The ORToolsException class is a subclass of the CoreException class and is used to handle exceptions specific to the OR-Tools library.

Source code in pyorlib/exceptions/ortools_exception.py
class ORToolsException(PyORlibException):
    """
    An exception class for handling errors related to the OR-Tools library.

    The ORToolsException class is a subclass of the CoreException class and is used to handle
    exceptions specific to the OR-Tools library.
    """

    def __init__(self, message: str = "OR-Tools exception"):
        super().__init__(message)

Attributes

errors instance-attribute

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

Functions

__init__

__init__(message: str = 'OR-Tools exception')
Source code in pyorlib/exceptions/ortools_exception.py
def __init__(self, message: str = "OR-Tools exception"):
    super().__init__(message)