Download src/core/exceptions.py from instNoeticSciences/GotPsi: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/datasets/instNoeticSciences/GotPsi/resolve/main/src/core/exceptions.py
- Command line
-
hf download hf://datasets/instNoeticSciences/GotPsi/src/core/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/datasets/instNoeticSciences/GotPsi/resolve/main/src/core/exceptions.py
1.34 kB
| """ | |
| 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 |