Source code for biopsykit.utils.exceptions

"""A set of custom exceptions."""

__all__ = [
    "ValidationError",
    "FileExtensionError",
    "DataFrameTransformationError",
    "ValueRangeError",
    "FeatureComputationError",
    "EcgProcessingError",
]


[docs]class ValidationError(Exception): """An error indicating that data-object does not comply with the guidelines."""
[docs]class FileExtensionError(Exception): """An error indicating that the file name has the wrong file extension."""
[docs]class DataFrameTransformationError(Exception): """An error indicating that dataframe transformation failed."""
[docs]class ValueRangeError(Exception): """An error indicating that scores are not in the expected range."""
[docs]class FeatureComputationError(Exception): """An error indicating that feature computation failed."""
[docs]class EcgProcessingError(Exception): """An error indicating that ECG processing failed."""