
    e	                        d dl mZ  G d d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          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d  d!e          Z G d" d#e          Zd$S )%    )ClyentErrorc                       e Zd Zd ZdS )RepoCLIErrorc                 v    t          j        | g|R i | t          | d          s|r|d         nd | _        d S d S )Nmessager   )	Exception__init__hasattrr   selfargskwargss      /lib/python3.11/site-packages/repo_cli/errors.pyr	   zRepoCLIError.__init__   sW    41$111&111tY'' 	5&*4477DLLL	5 	5    N__name__
__module____qualname__r	    r   r   r   r      s#        5 5 5 5 5r   r   c                       e Zd ZdS )UnauthorizedNr   r   r   r   r   r   r   r              Dr   r   c                       e Zd ZdS )ConflictNr   r   r   r   r   r      r   r   r   c                       e Zd ZdS )InvalidNameNr   r   r   r   r   r      r   r   r   c                       e Zd Zd ZdS )NotFoundc                     t          j        | g|R i | t          j        | g|R i | |d         | _        |d         | _        d S )Nr   )r   r	   
IndexErrorr   msgr   s      r   r	   zNotFound.__init__   s^    d4T444V444D242226222Aw7r   Nr   r   r   r   r   r      s#            r   r   c                       e Zd ZdS )	UserErrorNr   r   r   r   r$   r$       r   r   r$   c                       e Zd ZdS )ServerErrorNr   r   r   r   r&   r&   $   r   r   r&   c                       e Zd ZdS )ShowHelpNr   r   r   r   r(   r(   (   r   r   r(   c                       e Zd ZdS )NoMetadataErrorNr   r   r   r   r*   r*   ,   r   r   r*   c                       e Zd ZdS )NoDefaultChannelNr   r   r   r   r,   r,   0   r   r   r,   c                       e Zd ZdS )WrongRepoAuthSetupNr   r   r   r   r.   r.   4   r   r   r.   c                        e Zd Z fdZ xZS )NoDefaultUrlc                 b    d| _         t                                          | j                    d S )NzxRepository URL is not configured. Please use `conda repo config --set default_site <SITE>` or refer to the documentation)r"   superr	   r   	__class__s    r   r	   zNoDefaultUrl.__init__9   s1    - 	 	"""""r   r   r   r   r	   __classcell__r4   s   @r   r0   r0   8   s8        # # # # # # # # #r   r0   c                        e Zd Z fdZ xZS )DestionationPathExistsc                     d                     |          | _        || _        t          t          |                               | j                   d S )Nz%destination path '{}' already exists.)formatr"   locationr2   r   r	   )r   r<   r4   s     r   r	   zDestionationPathExists.__init__B   sE    :AA(KK lD!!**4844444r   r5   r7   s   @r   r9   r9   A   s8        5 5 5 5 5 5 5 5 5r   r9   c                        e Zd Z fdZ xZS )PillowNotInstalledc                 p    d| _         t          t          |                               | j                    d S )NzBpillow is not installed. Install it with:
    conda install pillowr"   r2   r   r	   r3   s    r   r	   zPillowNotInstalled.__init__I   5    T 	 	lD!!**4844444r   r5   r7   s   @r   r>   r>   H   8        5 5 5 5 5 5 5 5 5r   r>   c                        e Zd Z fdZ xZS )ChannelFrozenc                     d                     |          | _        t          t          |                               | j                   d S )NzChannel {} is frozen.r;   r"   r2   r   r	   )r   channelr4   s     r   r	   zChannelFrozen.__init__Q   s>    *11'::lD!!**4844444r   r5   r7   s   @r   rD   rD   P   s8        5 5 5 5 5 5 5 5 5r   rD   c                        e Zd Z fdZ xZS )BulkActionErrorc                     d                     ||          | _        t          t          |                               | j                   d S )Nz0Bulk action failed with code: {} and message: {}rF   )r   coder   r4   s      r   r	   zBulkActionError.__init__W   sG    ELL'
 
 	lD!!**4844444r   r5   r7   s   @r   rI   rI   V   rB   r   rI   c                        e Zd Z fdZ xZS )SystemDiagonseErrorc                 p    d| _         t          t          |                               | j                    d S )NzFThe cleanup job has been started. Check the logs for more information.r@   r3   s    r   r	   zSystemDiagonseError.__init___   rA   r   r5   r7   s   @r   rM   rM   ^   rB   r   rM   N)clyent.errorsr   r   r   r   r   r!   r   r$   r&   r(   r*   r,   r.   r0   r9   r>   rD   rI   rM   r   r   r   <module>rP      s   % % % % % %5 5 5 5 5; 5 5 5	 	 	 	 	< 	 	 		 	 	 	 	| 	 	 		 	 	 	 	, 	 	 	    |Z   	 	 	 	 	 	 	 		 	 	 	 	, 	 	 		 	 	 	 	| 	 	 		 	 	 	 	l 	 	 		 	 	 	 	| 	 	 		 	 	 	 	 	 	 	# # # # #< # # #5 5 5 5 5\ 5 5 55 5 5 5 5 5 5 55 5 5 5 5L 5 5 55 5 5 5 5l 5 5 55 5 5 5 5, 5 5 5 5 5r   