o
    wÖi  ã                   @   sL  d dl mZmZmZ G dd„ deƒZG dd„ deƒZG dd„ deeƒZG dd	„ d	eeƒZ	G d
d„ de	eƒZ
G dd„ deƒZG dd„ deeƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ dee	ƒZG dd„ deeƒZG dd„ deeƒZG dd„ deeƒZG dd„ deeƒZG d d!„ d!eeƒZG d"d#„ d#eƒZG d$d%„ d%eƒZd&S )'é    )ÚAnyÚOptionalÚTypec                   @   s¬   e Zd ZU eed< eed< eed< ee ed< eed< ee ed< ee ed< eee  ed< ee ed	< eee  ed
< ee ed< dZ	e
ed< dededdfdd„ZdS )ÚOmegaConfBaseExceptionÚparent_nodeÚ
child_nodeÚkeyÚfull_keyÚvalueÚmsgÚcauseÚobject_typeÚobject_type_strÚref_typeÚref_type_strFÚ_initializedÚ_argsÚ_kwargsÚreturnNc                 O   s4   d | _ d | _d | _d | _d | _d | _d | _d | _d S ©N)r   r   r   r	   r
   r   r   r   )Úselfr   r   © r   úM/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/omegaconf/errors.pyÚ__init__   s   
zOmegaConfBaseException.__init__)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__r   ÚstrÚ	Exceptionr   r   Úboolr   r   r   r   r   r      s   
 r   c                   @   ó   e Zd ZdZdS )ÚMissingMandatoryValuezfThrown when a variable flagged with '???' value is accessed to
    indicate that the value was not setN©r   r   r   Ú__doc__r   r   r   r   r"      ó    r"   c                   @   r!   )ÚKeyValidationErrorz6
    Thrown when an a key of invalid type is used
    Nr#   r   r   r   r   r&   $   r%   r&   c                   @   r!   )ÚValidationErrorz.
    Thrown when a value fails validation
    Nr#   r   r   r   r   r'   *   r%   r'   c                   @   r!   )ÚUnsupportedValueTypez=
    Thrown when an input value is not of supported type
    Nr#   r   r   r   r   r(   0   r%   r(   c                   @   r!   )ÚReadonlyConfigErrorz=
    Thrown when someone tries to modify a frozen config
    Nr#   r   r   r   r   r)   6   r%   r)   c                   @   r!   )ÚInterpolationResolutionErrorzK
    Base class for exceptions raised when resolving an interpolation.
    Nr#   r   r   r   r   r*   <   r%   r*   c                   @   r!   )ÚUnsupportedInterpolationTypezM
    Thrown when an attempt to use an unregistered interpolation is made
    Nr#   r   r   r   r   r+   B   r%   r+   c                   @   r!   )ÚInterpolationKeyErrorzL
    Thrown when a node does not exist when resolving an interpolation.
    Nr#   r   r   r   r   r,   H   r%   r,   c                   @   r!   )Ú InterpolationToMissingValueErrorzO
    Thrown when a node interpolation points to a node that is set to ???.
    Nr#   r   r   r   r   r-   N   r%   r-   c                   @   r!   )ÚInterpolationValidationErrorzO
    Thrown when the result of an interpolation fails the validation step.
    Nr#   r   r   r   r   r.   T   r%   r.   c                       sB   e Zd ZU dZeed< deddf‡ fdd„Zdefdd„Z‡  ZS )	ÚConfigKeyErrorzY
    Thrown from DictConfig when a regular dict access would have caused a KeyError.
    r   r   Nc                    s   t ƒ  |¡ || _d S r   )Úsuperr   r   )r   r   ©Ú	__class__r   r   r   a   s   
zConfigKeyError.__init__c                 C   s   | j S )zW
        Workaround to nasty KeyError quirk: https://bugs.python.org/issue2651
        )r   )r   r   r   r   Ú__str__e   s   zConfigKeyError.__str__)	r   r   r   r$   r   r   r   r3   Ú__classcell__r   r   r1   r   r/   Z   s
   
 r/   c                   @   r!   )ÚConfigAttributeErrorz`
    Thrown from a config object when a regular access would have caused an AttributeError.
    Nr#   r   r   r   r   r5   l   r%   r5   c                   @   r!   )ÚConfigTypeErrorzZ
    Thrown from a config object when a regular access would have caused a TypeError.
    Nr#   r   r   r   r   r6   r   r%   r6   c                   @   r!   )ÚConfigIndexErrorz\
    Thrown from a config object when a regular access would have caused an IndexError.
    Nr#   r   r   r   r   r7   x   r%   r7   c                   @   r!   )ÚConfigValueErrorz[
    Thrown from a config object when a regular access would have caused a ValueError.
    Nr#   r   r   r   r   r8   ~   r%   r8   c                   @   r!   )ÚConfigCycleDetectedExceptionzL
    Thrown when a cycle is detected in the graph made by config nodes.
    Nr#   r   r   r   r   r9   „   r%   r9   c                   @   r!   )ÚGrammarParseErrorzT
    Thrown when failing to parse an expression according to the ANTLR grammar.
    Nr#   r   r   r   r   r:   Š   r%   r:   N)Útypingr   r   r   r   r   r"   Ú
ValueErrorr&   r'   r(   r)   r*   r+   r,   r-   r.   ÚKeyErrorr/   ÚAttributeErrorr5   Ú	TypeErrorr6   Ú
IndexErrorr7   r8   r9   r:   r   r   r   r   Ú<module>   s&    