dlt.common.schema.exceptions
DataValidationError Objects
class DataValidationError(SchemaException)
__init__
def __init__(schema_name: str,
             table_name: str,
             column_name: str,
             schema_entity: TSchemaContractEntities,
             contract_mode: TSchemaEvolutionMode,
             table_schema: Any,
             schema_contract: TSchemaContractDict,
             data_item: Any = None,
             extended_info: str = None) -> None
Raised when data_item violates contract_mode on a schema_entity as defined by table_schema
Schema, table and column names are given as a context and full schema_contract and causing data_item as an evidence.