great_expectations.marshmallow__shade.exceptions
¶
Exception classes for marshmallow-related errors.
Module Contents¶
-
great_expectations.marshmallow__shade.exceptions.
SCHEMA
= _schema¶
-
exception
great_expectations.marshmallow__shade.exceptions.
MarshmallowError
¶ Bases:
Exception
Base class for all marshmallow-related errors.
-
exception
great_expectations.marshmallow__shade.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.marshmallow__shade.exceptions.
RegistryError
¶ Bases:
NameError
Raised when an invalid operation is performed on the serializer class registry.
-
exception
great_expectations.marshmallow__shade.exceptions.
StringNotCollectionError
¶ Bases:
great_expectations.marshmallow__shade.exceptions.MarshmallowError
,TypeError
Raised when a string is passed when a list of strings is expected.
-
exception
great_expectations.marshmallow__shade.exceptions.
FieldInstanceResolutionError
¶ Bases:
great_expectations.marshmallow__shade.exceptions.MarshmallowError
,TypeError
Raised when schema to instantiate is neither a Schema class nor an instance.