Source code for datalake_ingestion.exceptions

[docs]class PreprocessError(Exception): """ Base class for all preprocessing exceptions """ def __init__(self, message): self.message = message def __str__(self): return self.message
[docs]class PreprocessFailed(PreprocessError): """ Is raised when preprocessor in unable to process a file """ pass
[docs]class HackDetected(PreprocessError): """ Is raised when a suspicious content is detected in a file """ pass