
    de                         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d
S )    )ENOENTc                   "     e Zd ZdZ fdZ xZS )InvalidArchiveErrorz(Raised when libarchive can't open a filec                 r    d|d|}t           | _        t                                          |           d S )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.11/site-packages/conda_package_handling/exceptions.pyr	   zInvalidArchiveError.__init__   sE      >@RRF 	 
    )__name__
__module____qualname____doc__r	   __classcell__r   s   @r   r   r      s>        22        r   r   c                       e Zd ZdZdS )ArchiveCreationErrorz,Raised when an archive fails during creationN)r   r   r   r    r   r   r   r      s        66Dr   r   c                        e Zd Z fdZ xZS )CaseInsensitiveFileSystemErrorc                 ^    d}|| _         || _         t                      j        ||fi | d S )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__   sD    
 !1 0)7==f=====r   r   r   r   r	   r   r   s   @r   r   r      s8        > > > > > > > > >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                      j        |g|R i | d S )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__)   s{    *!2 	U?$BTTFG$%% 	 	-$---"-----r   r"   r   s   @r   r$   r$   (   s8        . . . . . . . . .r   r$   N)r   r   	Exceptionr   r   r   r$   r   r   r   <module>r+      s         	 	 	 	 	) 	 	 		 	 	 	 	9 	 	 	> > > > >%8 > > >$. . . . .i . . . . .r   