
    I0fe                     h    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y
)    )ENOENTc                   "     e Zd ZdZ fdZ xZS )InvalidArchiveErrorz(Raised when libarchive can't open a filec                 J    d|d|}t         | _        t        |   |       y )NzError with archive zV.  You probably need to delete and re-download or re-create this file.  Message was:

)r   errnosuper__init__)selffnmsgargskw	__class__s        Alib/python3.12/site-packages/conda_package_handling/exceptions.pyr	   zInvalidArchiveError.__init__   s,     >@F 	 
    )__name__
__module____qualname____doc__r	   __classcell__r   s   @r   r   r      s    2 r   r   c                       e Zd ZdZy)ArchiveCreationErrorz,Raised when an archive fails during creationN)r   r   r   r    r   r   r   r      s    6r   r   c                        e Zd Z fdZ xZS )CaseInsensitiveFileSystemErrorc                 H    d}|| _         || _        t        |   ||fi | y )Na
  
        Cannot extract package to a case-insensitive file system. Your install
        destination does not differentiate between upper and lowercase
        characters, and this breaks things. Try installing to a location that
        is case-sensitive. Windows drives are usually the culprit here - can
        you install to a native Unix drive, or turn on case sensitivity for
        this (Windows) location?

          package location: %(package_location)s
          extract location: %(extract_location)s
        )package_locationextract_locationr   r	   )r
   r   r   kwargsmessager   s        r   r	   z'CaseInsensitiveFileSystemError.__init__   s1    
 !1 0)7=f=r   r   r   r   r	   r   r   s   @r   r   r      s    > >r   r   c                        e Zd Z fdZ xZS )ConversionErrorc                     || _         || _        d}| j                   rd| j                   z  }|d| j                  z  z   }t        |   |g|i | y )N z'Missing files in converted package: %s
z7Mismatching sizes (corruption) in converted package: %s)missing_filesmismatching_sizesr   r	   )r
   r'   r(   r   r   errorsr   s         r   r	   zConversionError.__init__)   sh    *!2?$BTBTTFG$$%% 	 	-$-"-r   r"   r   s   @r   r$   r$   (   s    . .r   r$   N)r   r   	Exceptionr   r   r   r$   r   r   r   <module>r+      s9    	) 		9 	>%8 >$.i .r   