a
    (ºDfØ  ã                   @   sœ   d Z ddlmZ g d¢ZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZdS )zModule with common exceptionsé    )Ú
to_hex_sha)	ÚAmbiguousObjectNameÚBadNameÚ	BadObjectÚBadObjectTypeÚInvalidDBRootÚODBErrorÚ
ParseErrorÚUnsupportedOperationr   c                   @   s   e Zd ZdZdS )r   z(All errors thrown by the object databaseN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úV/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/gitdb/exc.pyr      s   r   c                   @   s   e Zd ZdZdS )r   zDThrown if an object database cannot be initialized at the given pathNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdd„ ZdS )r   zQThe object with the given SHA does not exist. Instantiate with the
    failed shac                 C   s   dt | jd ƒ S )NzBadObject: %sr   )r   Úargs©Úselfr   r   r   Ú__str__    s    zBadObject.__str__N©r   r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdd„ ZdS )r   z.A name provided to rev_parse wasn't understoodc                 C   s   d| j d  S )Nz%Ref '%s' did not resolve to an objectr   )r   r   r   r   r   r   '   s    zBadName.__str__Nr   r   r   r   r   r   $   s   r   c                   @   s   e Zd ZdZdS )r	   z?Thrown if the parsing of a file failed due to an invalid formatNr   r   r   r   r   r	   +   s   r	   c                   @   s   e Zd ZdZdS )r   zcThrown if a possibly shortened name does not uniquely represent a single object
    in the databaseNr   r   r   r   r   r   /   s   r   c                   @   s   e Zd ZdZdS )r   z"The object had an unsupported typeNr   r   r   r   r   r   4   s   r   c                   @   s   e Zd ZdZdS )r
   zHThrown if the given operation cannot be supported by the object databaseNr   r   r   r   r   r
   8   s   r
   N)r   Z
gitdb.utilr   Ú__all__Ú	Exceptionr   r   r   r   r	   r   r   r
   r   r   r   r   Ú<module>   s   