File size: 1,340 Bytes
9deebf2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | """
Custom exceptions for the GotPsi data cleaning pipeline.
These exceptions provide specific error handling for different
failure modes during the data processing workflow.
"""
class GotPsiException(Exception):
"""Base exception for all GotPsi pipeline errors."""
pass
class EncodingError(GotPsiException):
"""Raised when encoding detection or conversion fails."""
pass
class DelimiterError(GotPsiException):
"""Raised when delimiter detection or standardization fails."""
pass
class TemporalError(GotPsiException):
"""Raised when date/time parsing fails."""
pass
class SchemaError(GotPsiException):
"""Raised when schema reconciliation or validation fails."""
pass
class QualityError(GotPsiException):
"""Raised when data quality thresholds are not met."""
pass
class ProfilerError(GotPsiException):
"""Raised when file profiling fails."""
pass
class ProcessorError(GotPsiException):
"""Raised when dataset-specific processing fails."""
pass
class ExportError(GotPsiException):
"""Raised when data export operations fail."""
pass
class ConfigurationError(GotPsiException):
"""Raised when configuration is invalid or missing."""
pass
class DataIntegrityError(GotPsiException):
"""Raised when data integrity checks fail."""
pass |