Exceptions

All exceptions inherit from SchemaShiftError.

exception schemashift.SchemaShiftError[source]

Bases: Exception

Base exception for all schemashift errors.

exception schemashift.ConfigValidationError[source]

Bases: SchemaShiftError

Raised when a config file or model fails validation.

exception schemashift.DSLSyntaxError(message, expression='', position=-1)[source]

Bases: SchemaShiftError

Raised when a DSL expression cannot be parsed.

exception schemashift.DSLRuntimeError(message, expression='', target='')[source]

Bases: SchemaShiftError

Raised when a valid DSL expression fails at evaluation time.

exception schemashift.FormatDetectionError[source]

Bases: SchemaShiftError

Raised when automatic format detection fails.

exception schemashift.AmbiguousFormatError(message, candidates=None)[source]

Bases: FormatDetectionError

Raised when multiple formats match with equal confidence.

exception schemashift.SchemaValidationError[source]

Bases: SchemaShiftError

Raised when a DataFrame does not conform to a TargetSchema.

exception schemashift.UnsupportedFileError[source]

Bases: SchemaShiftError

Raised when a file extension is not supported by any reader.

exception schemashift.LLMGenerationError(message, attempts=None)[source]

Bases: SchemaShiftError

Raised when LLM-assisted config generation fails.

exception schemashift.ReaderError[source]

Bases: SchemaShiftError

Raised when reading a file fails at the I/O or parsing level.