Source code for probables.exceptions

""" PyProbables Exceptions """


[docs] class ProbablesBaseException(Exception): """Base ProbablesBaseException Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message) def __str__(self) -> str: return self.message
[docs] class InitializationError(ProbablesBaseException): """Initialization Exception Args: message (str): The initialization error messge""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)
[docs] class NotSupportedError(ProbablesBaseException): """Not Supported Functionality Exception Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)
[docs] class CuckooFilterFullError(ProbablesBaseException): """Cuckoo Filter Full Exception Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)
[docs] class RotatingBloomFilterError(ProbablesBaseException): """RotatingBloomFilter unable to rotate Blooms Exceptions Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)
[docs] class CountMinSketchError(ProbablesBaseException): """CountMinSketch Exception Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)
[docs] class QuotientFilterError(ProbablesBaseException): """Quotient Filter Exception Args: message (str): The error message to be reported""" def __init__(self, message: str) -> None: self.message = message super().__init__(self.message)