great_expectations.exceptions

Package Contents

exception great_expectations.exceptions.ValidationError(message: typing.Union[str, typing.List, typing.Dict], field_name: str = SCHEMA, data: typing.Union[typing.Mapping[str, typing.Any], typing.Iterable[typing.Mapping[str, typing.Any]]] = None, valid_data: typing.Union[typing.List[typing.Dict[str, typing.Any]], typing.Dict[str, typing.Any]] = None, **kwargs)

Bases: great_expectations.marshmallow__shade.exceptions.MarshmallowError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

normalized_messages(self)
exception great_expectations.exceptions.GreatExpectationsError(message)

Bases: Exception

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.GreatExpectationsValidationError(message, validation_error=None)

Bases: great_expectations.marshmallow__shade.ValidationError, great_expectations.exceptions.exceptions.GreatExpectationsError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

__str__(self)

Return str(self).

exception great_expectations.exceptions.SuiteEditNotebookCustomTemplateModuleNotFoundError(custom_module)

Bases: ModuleNotFoundError

Module not found.

exception great_expectations.exceptions.DataContextError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.CheckpointError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.CheckpointNotFoundError(message)

Bases: great_expectations.exceptions.exceptions.CheckpointError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.StoreBackendError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.UnavailableMetricError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ParserError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidConfigurationYamlError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidTopLevelConfigKeyError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.MissingTopLevelConfigKeyError(message, validation_error=None)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsValidationError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

exception great_expectations.exceptions.InvalidBaseYamlConfigError(message, validation_error=None, field_name=None)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsValidationError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

exception great_expectations.exceptions.InvalidDataContextConfigError(message, validation_error=None, field_name=None)

Bases: great_expectations.exceptions.exceptions.InvalidBaseYamlConfigError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

exception great_expectations.exceptions.InvalidCheckpointConfigError(message, validation_error=None, field_name=None)

Bases: great_expectations.exceptions.exceptions.InvalidBaseYamlConfigError

Raised when validation fails on a field or schema.

Validators and custom fields should raise this exception.

Parameters
  • message – An error message, list of error messages, or dict of error messages. If a dict, the keys are subitems and the values are error messages.

  • field_name – Field name to store the error on. If None, the error is stored as schema-level error.

  • data – Raw input data.

  • valid_data – Valid (de)serialized data.

exception great_expectations.exceptions.InvalidBatchKwargsError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidBatchSpecError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidBatchRequestError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidBatchIdError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidDataContextKeyError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.UnsupportedConfigVersionError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.EvaluationParameterError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ProfilerError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ProfilerConfigurationError(message)

Bases: great_expectations.exceptions.exceptions.ProfilerError

A configuration error for a profiler.

exception great_expectations.exceptions.ProfilerExecutionError(message)

Bases: great_expectations.exceptions.exceptions.ProfilerError

A runtime error for a profiler.

exception great_expectations.exceptions.InvalidConfigError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.MissingConfigVariableError(message, missing_config_variable=None)

Bases: great_expectations.exceptions.exceptions.InvalidConfigError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.AmbiguousDataAssetNameError(message, candidates=None)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.StoreConfigurationError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidExpectationKwargsError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidExpectationConfigurationError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidValidationResultError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.GreatExpectationsTypeError

Bases: TypeError

Inappropriate argument type.

exception great_expectations.exceptions.StoreError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidKeyError(message)

Bases: great_expectations.exceptions.exceptions.StoreError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidCacheValueError(result_dict)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ConfigNotFoundError

Bases: great_expectations.exceptions.exceptions.DataContextError

The great_expectations dir could not be found.

exception great_expectations.exceptions.PluginModuleNotFoundError(module_name)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

A module import failed.

exception great_expectations.exceptions.PluginClassNotFoundError(module_name, class_name)

Bases: great_expectations.exceptions.exceptions.DataContextError, AttributeError

A module import failed.

exception great_expectations.exceptions.ClassInstantiationError(module_name, package_name, class_name)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ExpectationSuiteNotFoundError(data_asset_name)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.BatchKwargsError(message, batch_kwargs=None)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.BatchDefinitionError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.BatchSpecError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.DatasourceError(datasource_name, message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.DatasourceConfigurationError(datasource_name, message)

Bases: great_expectations.exceptions.exceptions.DatasourceError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.DatasourceInitializationError(datasource_name, message)

Bases: great_expectations.exceptions.exceptions.DatasourceError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.DatasourceKeyPairAuthBadPassphraseError(datasource_name, message)

Bases: great_expectations.exceptions.exceptions.DatasourceInitializationError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.InvalidConfigValueTypeError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.DataConnectorError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.ExecutionEngineError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.BatchFilterError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.SorterError(message)

Bases: great_expectations.exceptions.exceptions.DataContextError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.MetricError(message)

Bases: great_expectations.exceptions.exceptions.GreatExpectationsError

Common base class for all non-exit exceptions.

exception great_expectations.exceptions.MetricProviderError(message)

Bases: great_expectations.exceptions.exceptions.MetricError

Common base class for all non-exit exceptions.