Exceptions

All three backends raise the same exception types, defined in dfguard._base.exceptions.

exception dfguard._base.exceptions.SchemaValidationError(errors, history)[source]

Raised when a DataFrame’s runtime schema does not match the declared schema.

Attributes

errors:

Human-readable list of individual mismatches.

history:

Full schema evolution history at the point of failure.

Parameters:
Return type:

None

exception dfguard._base.exceptions.TypeAnnotationError[source]

Raised when a schema annotation cannot be converted to the backend’s dtype.

exception dfguard._base.exceptions.ColumnNotFoundError[source]

Raised when an expected column is absent from the DataFrame.

exception dfguard._base.exceptions.DfTypesError[source]

Base class for all dfguard errors.