dataframely.exc module

exception dataframely.exc.AnnotationImplementationError(attr: str, kls: type)[source]

Bases: ImplementationError

Error raised when the annotations of a collection are invalid.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.DtypeValidationError(errors: dict[str, tuple[DataType | DataTypeClass, DataType | DataTypeClass]])[source]

Bases: ValidationError

Validation error raised when column dtypes are wrong.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.ImplementationError[source]

Bases: Exception

Error raised when a schema is implemented incorrectly.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.MemberValidationError(errors: dict[str, ValidationError])[source]

Bases: ValidationError

Validation error raised when multiple members of a collection fail validation.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.RuleValidationError(errors: dict[str, int])[source]

Bases: ValidationError

Complex validation error raised when rule validation fails.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.ValidationError(message: str)[source]

Bases: Exception

Error raised when dataframely validation encounters an issue.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception dataframely.exc.ValidationRequiredError[source]

Bases: Exception

Error raised when validation is when reading a parquet file.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.