§
    ¤˜ºh	  ã                  ó²   — d Z ddlmZ ddlZdZ G d„ de¦  «        Z G d„ de¦  «        Z G d	„ d
e¦  «        Z	 G d„ dee
¦  «        Z G d„ dee
¦  «        ZdS )z1Exception classes for marshmallow-related errors.é    )ÚannotationsNÚ_schemac                  ó   — e Zd ZdZdS )ÚMarshmallowErrorz.Base class for all marshmallow-related errors.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú^/var/www/html/services/rag-service/venv/lib/python3.11/site-packages/marshmallow/exceptions.pyr   r      s   € € € € € Ø8Ð8Ð8Ð8r   r   c                  óJ   ‡ — e Zd ZdZeddfdˆ fd„Zd„ Zedd„¦   «         Zˆ xZ	S )ÚValidationErroraæ  Raised when validation fails on a field or schema.

    Validators and custom fields should raise this exception.

    :param 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.
    :param field_name: Field name to store the error on.
        If `None`, the error is stored as schema-level error.
    :param data: Raw input data.
    :param valid_data: Valid (de)serialized data.
    NÚmessageústr | list | dictÚ
field_nameÚstrÚdataúYtyping.Mapping[str, typing.Any] | typing.Iterable[typing.Mapping[str, typing.Any]] | NoneÚ
valid_dataú:list[dict[str, typing.Any]] | dict[str, typing.Any] | Nonec                óÎ   •— t          |t          t          f¦  «        r|gn|| _        || _        || _        || _        || _        t          ¦   «          	                    |¦  «         d S ©N)
Ú
isinstancer   ÚbytesÚmessagesr   r   r   ÚkwargsÚsuperÚ__init__)Úselfr   r   r   r   r   Ú	__class__s         €r   r    zValidationError.__init__   s_   ø€ õ &0°½#½u¸Ñ%FÔ%FÐS˜˜	˜	ÈGˆŒØ$ˆŒØˆŒ	Ø$ˆŒØˆŒÝ‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   c                ó€   — | j         t          k    r!t          | j        t          ¦  «        r| j        S | j         | j        iS r   )r   ÚSCHEMAr   r   Údict©r!   s    r   Únormalized_messagesz#ValidationError.normalized_messages-   s7   € ØŒ?�fÒ$Ð$­°D´MÅ4Ñ)HÔ)HÐ$Ø”=Ð Ø” ¤Ð/Ð/r   Úreturnúdict[str, typing.Any]c                ó–   — t          | j        t          ¦  «        s)t          dt	          | j        ¦  «        j        z   ¦  «        ‚| j        S )Nz9cannot access 'messages_dict' when 'messages' is of type )r   r   r%   Ú	TypeErrorÚtyper   r&   s    r   Úmessages_dictzValidationError.messages_dict2   sJ   € å˜$œ-­Ñ.Ô.ð 	ÝØKÝ�t”}Ñ%Ô%Ô.ñ/ñô ð ð Œ}Ðr   )r   r   r   r   r   r   r   r   )r(   r)   )
r   r	   r
   r   r$   r    r'   Úpropertyr-   Ú__classcell__)r"   s   @r   r   r      sˆ   ø€ € € € € ð
ð 
ð !ð ØQUð"ð "ð "ð "ð "ð "ð "ð"0ð 0ð 0ð
 ðð ð ñ „Xðð ð ð ð r   r   c                  ó   — e Zd ZdZdS )ÚRegistryErrorzXRaised when an invalid operation is performed on the serializer
    class registry.
    Nr   r   r   r   r1   r1   <   s   € € € € € ðð ð ð r   r1   c                  ó   — e Zd ZdZdS )ÚStringNotCollectionErrorzBRaised when a string is passed when a list of strings is expected.Nr   r   r   r   r3   r3   B   s   € € € € € ØLÐLÐLÐLr   r3   c                  ó   — e Zd ZdZdS )ÚFieldInstanceResolutionErrorzLRaised when schema to instantiate is neither a Schema class nor an instance.Nr   r   r   r   r5   r5   F   s   € € € € € ØVÐVÐVÐVr   r5   )r   Ú
__future__r   Útypingr$   Ú	Exceptionr   r   Ú	NameErrorr1   r+   r3   r5   r   r   r   ú<module>r:      s#  ðØ 7Ð 7à "Ð "Ð "Ð "Ð "Ð "à €€€ð 
€ð9ð 9ð 9ð 9ð 9�yñ 9ô 9ð 9ð*ð *ð *ð *ð *Ð&ñ *ô *ð *ðZð ð ð ð �Iñ ô ð ðMð Mð Mð Mð MÐ/°ñ Mô Mð MðWð Wð Wð Wð WÐ#3°Yñ Wô Wð Wð Wð Wr   