o
    ?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/veenaModal/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&    