
    ُkh                        d dl mZmZmZ  G d de      Z G d de      Z G d dee      Z G d d	ee      Z	 G d
 de	e      Z
 G d de      Z G d dee      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 G d dee      Z G d dee      Z G d dee      Z G d  d!ee      Z G d" d#e      Z G d$ d%e      Zy&)'    )AnyOptionalTypec                       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Zy)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                 t    d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        y N)r   r	   r
   r   r   r   r   r   )selfr   r   s      L/var/www/teggl/fontify/venv/lib/python3.12/site-packages/omegaconf/errors.py__init__zOmegaConfBaseException.__init__   s<    
    )__name__
__module____qualname__r   __annotations__r   str	Exceptionr   r   boolr    r   r   r   r      s    O	HsmJ	#I$s)$$c]"tCy!!3-L$s s t r   r   c                       e Zd ZdZy)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&      s    +r   r&   c                       e Zd ZdZy)KeyValidationErrorz6
    Thrown when an a key of invalid type is used
    Nr'   r$   r   r   r*   r*   $       r   r*   c                       e Zd ZdZy)ValidationErrorz.
    Thrown when a value fails validation
    Nr'   r$   r   r   r-   r-   *   r+   r   r-   c                       e Zd ZdZy)UnsupportedValueTypez=
    Thrown when an input value is not of supported type
    Nr'   r$   r   r   r/   r/   0   r+   r   r/   c                       e Zd ZdZy)ReadonlyConfigErrorz=
    Thrown when someone tries to modify a frozen config
    Nr'   r$   r   r   r1   r1   6   r+   r   r1   c                       e Zd ZdZy)InterpolationResolutionErrorzK
    Base class for exceptions raised when resolving an interpolation.
    Nr'   r$   r   r   r3   r3   <   r+   r   r3   c                       e Zd ZdZy)UnsupportedInterpolationTypezM
    Thrown when an attempt to use an unregistered interpolation is made
    Nr'   r$   r   r   r5   r5   B   r+   r   r5   c                       e Zd ZdZy)InterpolationKeyErrorzL
    Thrown when a node does not exist when resolving an interpolation.
    Nr'   r$   r   r   r7   r7   H   r+   r   r7   c                       e Zd ZdZy) InterpolationToMissingValueErrorzO
    Thrown when a node interpolation points to a node that is set to ???.
    Nr'   r$   r   r   r9   r9   N   r+   r   r9   c                       e Zd ZdZy)InterpolationValidationErrorzO
    Thrown when the result of an interpolation fails the validation step.
    Nr'   r$   r   r   r;   r;   T   r+   r   r;   c                   D     e Zd ZU dZeed<   deddf fdZdefdZ xZS )ConfigKeyErrorzY
    Thrown from DictConfig when a regular dict access would have caused a KeyError.
    r   r   Nc                 2    t         |   |       || _        y r   )superr   r   )r   r   	__class__s     r   r   zConfigKeyError.__init__a   s    r   c                     | j                   S )zW
        Workaround to nasty KeyError quirk: https://bugs.python.org/issue2651
        )r   )r   s    r   __str__zConfigKeyError.__str__e   s     xxr   )	r   r   r   r(   r!   r    r   rB   __classcell__)r@   s   @r   r=   r=   Z   s.     
HC D  r   r=   c                       e Zd ZdZy)ConfigAttributeErrorz`
    Thrown from a config object when a regular access would have caused an AttributeError.
    Nr'   r$   r   r   rE   rE   l   r+   r   rE   c                       e Zd ZdZy)ConfigTypeErrorzZ
    Thrown from a config object when a regular access would have caused a TypeError.
    Nr'   r$   r   r   rG   rG   r   r+   r   rG   c                       e Zd ZdZy)ConfigIndexErrorz\
    Thrown from a config object when a regular access would have caused an IndexError.
    Nr'   r$   r   r   rI   rI   x   r+   r   rI   c                       e Zd ZdZy)ConfigValueErrorz[
    Thrown from a config object when a regular access would have caused a ValueError.
    Nr'   r$   r   r   rK   rK   ~   r+   r   rK   c                       e Zd ZdZy)ConfigCycleDetectedExceptionzL
    Thrown when a cycle is detected in the graph made by config nodes.
    Nr'   r$   r   r   rM   rM      r+   r   rM   c                       e Zd ZdZy)GrammarParseErrorzT
    Thrown when failing to parse an expression according to the ANTLR grammar.
    Nr'   r$   r   r   rO   rO      r+   r   rO   N)typingr   r   r   r"   r   r&   
ValueErrorr*   r-   r/   r1   r3   r5   r7   r9   r;   KeyErrorr=   AttributeErrorrE   	TypeErrorrG   
IndexErrorrI   rK   rM   rO   r$   r   r   <module>rV      s   & &Y 6+2 +
/ ,j ?J 0 #9: #? 8 'C #? +X $1> ,i -z -z #9 . r   