a
    ÜÄAb;  ã                   @  sL   d Z ddlmZ dgZddlZejr8ddlZddlmZ	 G dd„ de
ƒZdS )zTExceptions that could be raised by :mod:`~anaconda-navigator.utils.conda` utilities.é    )ÚannotationsÚ
CondaErrorNé   )Útypesc                      s:   e Zd ZdZdddœ‡ fdd„Zeddœdd	„ƒZ‡  ZS )
r   zf
    General error raised by the Conda process.

    :param error: Content of the Conda response.
    z'conda_types.CondaErrorOutput'ÚNone)ÚerrorÚreturnc                   s   t ƒ  ¡  || _dS )z-Initialize new :class:`~CondaError` instance.N)ÚsuperÚ__init__Ú_CondaError__error)Úselfr   ©Ú	__class__© úHlib/python3.9/site-packages/anaconda_navigator/utils/conda/exceptions.pyr
      s    
zCondaError.__init__)r   c                 C  s   | j S )z"Content of the Conda error output.)r   )r   r   r   r   r      s    zCondaError.error)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   Ú__classcell__r   r   r   r   r      s   )r   Z
__future__r   Ú__all__ÚtypingÚTYPE_CHECKINGZtyping_extensionsÚ r   Zconda_typesÚBaseExceptionr   r   r   r   r   Ú<module>   s   