o
    =n0j  ã                   @   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_typeZobject_type_strÚref_typeZ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   úW/home/wildlama/miniconda3/envs/lam_a2e/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   r1   Ú__classcell__r   r   r/   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   r3   l   r#   r3   c                   @   r   )ÚConfigTypeErrorzZ
    Thrown from a config object when a regular access would have caused a TypeError.
    Nr!   r   r   r   r   r4   r   r#   r4   c                   @   r   )ÚConfigIndexErrorz\
    Thrown from a config object when a regular access would have caused an IndexError.
    Nr!   r   r   r   r   r5   x   r#   r5   c                   @   r   )ÚConfigValueErrorz[
    Thrown from a config object when a regular access would have caused a ValueError.
    Nr!   r   r   r   r   r6   ~   r#   r6   c                   @   r   )ÚConfigCycleDetectedExceptionzL
    Thrown when a cycle is detected in the graph made by config nodes.
    Nr!   r   r   r   r   r7   „   r#   r7   c                   @   r   )ÚGrammarParseErrorzT
    Thrown when failing to parse an expression according to the ANTLR grammar.
    Nr!   r   r   r   r   r8   Š   r#   r8   N)Útypingr   r   r   r   r   r    Ú
ValueErrorr$   r%   r&   r'   r(   r)   r*   r+   r,   ÚKeyErrorr-   ÚAttributeErrorr3   Ú	TypeErrorr4   Ú
IndexErrorr5   r6   r7   r8   r   r   r   r   Ú<module>   s&    