
    =e                          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dS )c                        e Zd Z fdZ xZS )BinstarErrorc                      t                      j        |  t          | d          s5	 t          |d                   | _        d S # t
          $ r d | _        Y d S w xY wd S )Nmessage    )super__init__hasattrstrr   
IndexErrorselfargs	__class__s     5lib/python3.11/site-packages/binstar_client/errors.pyr   zBinstarError.__init__   su    $tY'' 	$$"47|| $ $ $#$	$ 	$s   A AA__name__
__module____qualname__r   __classcell__r   s   @r   r   r      s8        $ $ $ $ $ $ $ $ $    r   c                       e Zd ZdS )UnauthorizedN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 fdZ xZS )NotFoundc                 L     t                      j        |  | j        | _        d S )N)r   r   r   msgr   s     r   r   zNotFound.__init__   s$    $<r   r   r   s   @r   r    r       s8                         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 fdZ xZS )DestinationPathExistsc                     d                     |          | _        || _        t                                          | j                   d S )Nz%destination path '{}' already exists.)formatr"   locationr   r   )r   r/   r   s     r   r   zDestinationPathExists.__init__0   s?    :AA(KK """""r   r   r   s   @r   r,   r,   .   s8        # # # # # # # # #r   r,   c                        e Zd Z fdZ xZS )PillowNotInstalledc                 b    d| _         t                                          | j                    d S )Nz?pillow is not installed. Install it with:
	conda install pillow)r"   r   r   )r   r   s    r   r   zPillowNotInstalled.__init__8   s*    V"""""r   r   r   s   @r   r1   r1   6   s8        # # # # # # # # #r   r1   N)	Exceptionr   r   r   r   r    r$   r&   r(   r*   r,   r1   r   r   r   <module>r4      s  	$ 	$ 	$ 	$ 	$9 	$ 	$ 	$	 	 	 	 	< 	 	 		 	 	 	 	| 	 	 	         |Z      	 	 	 	 	 	 	 		 	 	 	 	, 	 	 		 	 	 	 	| 	 	 		 	 	 	 	l 	 	 	# # # # #L # # ## # # # # # # # # #r   