Skip to content

Exceptions

Error

Bases: Exception

Base class for PyFLP exceptions

Source code in pyflp/exceptions.py
23
24
25
26
27
28
29
30
31
32
33
class Error(Exception):
    """Base class for PyFLP exceptions"""

    def __init__(self, what: str, *args: object) -> None:
        self.__what = what
        super().__init__(*args)

    def __repr__(self) -> str:
        return f"{type(self).__doc__}: {self.__what}"

    __str__ = __repr__

__str__ = __repr__ class-attribute

__what = what instance-attribute

__init__(what, *args)

Source code in pyflp/exceptions.py
26
27
28
def __init__(self, what: str, *args: object) -> None:
    self.__what = what
    super().__init__(*args)

__repr__()

Source code in pyflp/exceptions.py
30
31
def __repr__(self) -> str:
    return f"{type(self).__doc__}: {self.__what}"

DataCorruptionDetectedError

Bases: Error

Possible corruption in event data detected

Source code in pyflp/exceptions.py
36
37
class DataCorruptionDetectedError(Error):
    """Possible corruption in event data detected"""

OperationNotPermittedError

Bases: Error

Operation not permitted

Source code in pyflp/exceptions.py
51
52
class OperationNotPermittedError(Error):
    """Operation not permitted"""