Skip to content

exceptions

CriticalQualityWarningRaisedException

Bases: Exception

Exception raised when a component raises quality warnings.

Source code in multimno/core/exceptions.py
15
16
17
18
19
20
21
22
23
24
25
class CriticalQualityWarningRaisedException(Exception):
    """
    Exception raised when a component raises quality warnings.
    """

    def __init__(self, component_id: str) -> None:
        self.component_id = component_id
        self.error_msg = (
            f"Critical Quality Warnings were raised during the execution of the component: {self.component_id}."
        )
        super().__init__(self.error_msg)

PpNoDevicesException

Bases: Exception

Exception raised when no devices are found at the timepoint being calculated by the PresentPopulation class.

Source code in multimno/core/exceptions.py
 6
 7
 8
 9
10
11
12
class PpNoDevicesException(Exception):
    """
    Exception raised when no devices are found at the timepoint being calculated by the PresentPopulation class.
    """

    def error_msg(self, time_point: str):
        return f"No devices found at {time_point} timepoint. Please check the MNO data of this day."