Source code for subgroups.exceptions

# -*- coding: utf-8 -*-

# Contributors:
#    Antonio López Martínez-Carrasco <antoniolopezmc1995@gmail.com>

"""This file contains new exceptions used by the library.
"""

[docs] class OperatorNotSupportedError(NotImplementedError): """This exception is raised when an operator is not correctly implemented in the Operator class. """
[docs] class ParameterNotFoundError(KeyError): """This exception is raised when a needed parameter is not found in the quality measure computing process. """
[docs] class SubgroupParameterNotFoundError(ParameterNotFoundError): """This exception is raised when a subgroup parameter (i.e., tp, fp, TP or FP) is not found in the quality measure computing process. """
[docs] class InconsistentMethodParametersError(RuntimeError): """This exception is raised when a method has not been called with the appropriate parameters. """
[docs] class DatasetAttributeTypeError(TypeError): """This exception is raised when the type of an attribute in a dataset is not supported by a Subgroup Discovery (SD) algorithm. """
[docs] class DuplicateFpTreeNodeError(RuntimeError): """This exception is raised when attempting to add a FPTreeNode which already exists. """
[docs] class VerticalListSizeError(ValueError): """This exception is raised when comparing Vertical Lists with different dataset sizes. """