Skip to content

Exceptions

Custom exceptions for the SRAI package.

SRAIException

Bases: Exception

Base class for all SRAI exceptions.

ModelNotFitException

Bases: SRAIException

Exception raised when a model is not fit.

LoadedDataIsEmptyException(message)

Bases: SRAIException

Exception when the loaded data returned by the loader is empty.

Source code in srai/exceptions.py
def __init__(self, message: str):  # noqa: D107
    super().__init__()

    self.message = message