Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
exceptions.cpython-313.pyc31 linesDownload Raw Back to __pycache__
1�

2��j	���SrSSKJr SSKrSr"SS\5r"SS\5r"S	S3\5r	"SS\\45r"S
S\\55rg)z1Exception classes for marshmallow-related errors.�)�annotationsN�_schemac��\rSrSrSrSrg)�MarshmallowError�z.Base class for all marshmallow-related errors.�N��__name__�6__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��\D:\code\apps\devtools\python\user_packages\Python313\site-packages\marshmallow/exceptions.pyrrs��8rrc�b^�\rSrSrSr\SS4SU4SjjjrSr\S	Sj5r	Sr7U=r$)8�ValidationError�a�Raised when validation fails on a field or schema.9 10Validators and custom fields should raise this exception.11 12:param message: An error message, list of error messages, or dict of13    error messages. If a dict, the keys are subitems and the values are error messages.14:param field_name: Field name to store the error on.15    If `None`, the error is stored as schema-level error.16:param data: Raw input data.17:param valid_data: Valid (de)serialized data.18Nc�>�[U[[45(aU/OUUlX lX0lX@lXPl[TU]%U5 g�N)19�20isinstance�str�bytes�messages�21field_name�data�22valid_data�kwargs�super�__init__)�self�messagerrrr�	__class__s      �rr �ValidationError.__init__sA���&0��#�u��%F�%F��	�G��
�$���	�$����
����!rc��UR[:Xa+[UR[5(aUR$URUR0$r)r�SCHEMArr�dict�r!s r�normalized_messages�#ValidationError.normalized_messages-s;���?�?�f�$��D�M�M�4�)H�)H��=�=� �������/�/rc��[UR[5(d+[S[	UR5R23-5eUR$)Nz9cannot access 'messages_dict' when 'messages' is of type )rrr'�	TypeError�typer24r(s r�
messages_dict�ValidationError.messages_dict2sF���$�-�-��.�.��K��t�}�}�%�.�.�/��
��}�}�r)rrrrr)r"zstr | list | dictrrrzYtyping.Mapping[str, typing.Any] | typing.Iterable[typing.Mapping[str, typing.Any]] | Nonerz:list[dict[str, typing.Any]] | dict[str, typing.Any] | None)�returnzdict[str, typing.Any])r25rrr
rr&r r)�propertyr.r�
__classcell__)r#s@rrrs_���26�!��QU�"�"�"��"��	"�O�"�"�"0�27���rrc��\rSrSrSrSrg)�
RegistryError�<zPRaised when an invalid operation is performed on the serializer28class registry.29rNr	rrrr4r4<s��rr4c��\rSrSrSrSrg)�StringNotCollectionError�BzBRaised when a string is passed when a list of strings is expected.rNr	rrrr7r7Bs��Lrr7c��\rSrSrSrSrg)�FieldInstanceResolutionError�FzLRaised when schema to instantiate is neither a Schema class nor an instance.rNr	rrrr:r:Fs��Vrr:)
r�30__future__r�typingr&�	Exceptionrr�	NameErrorr4r,r7r:rrr�<module>r@s]��7�"�
�31��9�y�9�*�&�*�Z�I��M�/��M�W�#3�Y�Wr
codekingpro/portable-devtools · Team Ai