๐ Exceptions#
Source code: pyflp/exceptions.py
Contains the exceptions used by and shared across PyFLP.
- exception pyflp.exceptions.Error[source]#
Bases:
Exception
Base 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
,ValueError
An event is created with an ID out of its allowed range.
- exception pyflp.exceptions.HeaderCorrupted(desc: str)[source]#
Bases:
DataCorrupted
,ValueError
Header 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
,BufferError
A fixed size event is created with a wrong amount of bytes.
- exception pyflp.exceptions.ModelNotFound[source]#
Bases:
DataCorrupted
,IndexError
An invalid index is passed to modelโs
__getitem__
method.
- exception pyflp.exceptions.NoModelsFound[source]#
Bases:
DataCorrupted
,LookupError
Modelโ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:
DataCorrupted
String decoder couldnโt be decided due to absence of project version.