๐ Exceptions#
Source code: pyflp/exceptions.py
Contains the exceptions used by and shared across PyFLP.
- exception pyflp.exceptions.Error[source]#
Bases:
ExceptionBase class for PyFLP exceptions.
It is not guaranteed that exceptions raised from PyFLP always subclass Error. This is done to prevent duplication of exceptions. All exceptions raised by a function (in its body) explicitly are documented.
Some exceptions derive from standard Python exceptions to ease handling.
- exception pyflp.exceptions.EventIDOutOfRange(id: int, *expected: int)[source]#
Bases:
Error,ValueErrorAn event is created with an ID out of its allowed range.
- exception pyflp.exceptions.HeaderCorrupted(desc: str)[source]#
Bases:
DataCorrupted,ValueErrorHeader chunk contains an unexpected / invalid value.
- Parameters:
desc โ A string containing details about what is corrupted.
- exception pyflp.exceptions.InvalidEventChunkSize(expected: int, got: int)[source]#
Bases:
Error,BufferErrorA fixed size event is created with a wrong amount of bytes.
- exception pyflp.exceptions.ModelNotFound[source]#
Bases:
DataCorrupted,IndexErrorAn invalid index is passed to modelโs
__getitem__method.
- exception pyflp.exceptions.NoModelsFound[source]#
Bases:
DataCorrupted,LookupErrorModelโs
__iter__method fails to generate any model.
- exception pyflp.exceptions.PropertyCannotBeSet(*ids: Enum | int)[source]#
Bases:
Error,AttributeError
- exception pyflp.exceptions.VersionNotDetected[source]#
Bases:
DataCorruptedString decoder couldnโt be decided due to absence of project version.