a
    þd  ã                   @   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< eeddœ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Ú_initializedN)Ú_argsÚ_kwargsÚreturnc                 O   s4   d | _ d | _d | _d | _d | _d | _d | _d | _d S ©N)r   r   r   r	   r
   r   r   r   )Úselfr   r   © r   úY/var/www/html/stable-diffusion-webui/venv/lib/python3.9/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                   @   s   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      s   r   c                   @   s   e Zd ZdZdS )ÚKeyValidationErrorz6
    Thrown when an a key of invalid type is used
    Nr    r   r   r   r   r"   $   s   r"   c                   @   s   e Zd ZdZdS )ÚValidationErrorz.
    Thrown when a value fails validation
    Nr    r   r   r   r   r#   *   s   r#   c                   @   s   e Zd ZdZdS )ÚUnsupportedValueTypez=
    Thrown when an input value is not of supported type
    Nr    r   r   r   r   r$   0   s   r$   c                   @   s   e Zd ZdZdS )ÚReadonlyConfigErrorz=
    Thrown when someone tries to modify a frozen config
    Nr    r   r   r   r   r%   6   s   r%   c                   @   s   e Zd ZdZdS )ÚInterpolationResolutionErrorzK
    Base class for exceptions raised when resolving an interpolation.
    Nr    r   r   r   r   r&   <   s   r&   c                   @   s   e Zd ZdZdS )ÚUnsupportedInterpolationTypezM
    Thrown when an attempt to use an unregistered interpolation is made
    Nr    r   r   r   r   r'   B   s   r'   c                   @   s   e Zd ZdZdS )ÚInterpolationKeyErrorzL
    Thrown when a node does not exist when resolving an interpolation.
    Nr    r   r   r   r   r(   H   s   r(   c                   @   s   e Zd ZdZdS )Ú InterpolationToMissingValueErrorzO
    Thrown when a node interpolation points to a node that is set to ???.
    Nr    r   r   r   r   r)   N   s   r)   c                   @   s   e Zd ZdZdS )ÚInterpolationValidationErrorzO
    Thrown when the result of an interpolation fails the validation step.
    Nr    r   r   r   r   r*   T   s   r*   c                       s@   e Zd ZU dZeed< eddœ‡ fdd„Zedœdd	„Z‡  ZS )
ÚConfigKeyErrorzY
    Thrown from DictConfig when a regular dict access would have caused a KeyError.
    r   N)r   r   c                    s   t ƒ  |¡ || _d S r   )Úsuperr   r   )r   r   ©Ú	__class__r   r   r   a   s    zConfigKeyError.__init__)r   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   r/   Ú__classcell__r   r   r-   r   r+   Z   s   
r+   c                   @   s   e Zd ZdZdS )ÚConfigAttributeErrorz`
    Thrown from a config object when a regular access would have caused an AttributeError.
    Nr    r   r   r   r   r1   l   s   r1   c                   @   s   e Zd ZdZdS )ÚConfigTypeErrorzZ
    Thrown from a config object when a regular access would have caused a TypeError.
    Nr    r   r   r   r   r2   r   s   r2   c                   @   s   e Zd ZdZdS )ÚConfigIndexErrorz\
    Thrown from a config object when a regular access would have caused an IndexError.
    Nr    r   r   r   r   r3   x   s   r3   c                   @   s   e Zd ZdZdS )ÚConfigValueErrorz[
    Thrown from a config object when a regular access would have caused a ValueError.
    Nr    r   r   r   r   r4   ~   s   r4   c                   @   s   e Zd ZdZdS )ÚConfigCycleDetectedExceptionzL
    Thrown when a cycle is detected in the graph made by config nodes.
    Nr    r   r   r   r   r5   „   s   r5   c                   @   s   e Zd ZdZdS )ÚGrammarParseErrorzT
    Thrown when failing to parse an expression according to the ANTLR grammar.
    Nr    r   r   r   r   r6   Š   s   r6   N)Útypingr   r   r   r   r   r   Ú
ValueErrorr"   r#   r$   r%   r&   r'   r(   r)   r*   ÚKeyErrorr+   ÚAttributeErrorr1   Ú	TypeErrorr2   Ú
IndexErrorr3   r4   r5   r6   r   r   r   r   Ú<module>   s$   