o
    ÞñhØ  ã                   @   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                   @   ó   e Zd ZdZdS )r   z(All errors thrown by the object databaseN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú=/var/www/vscode/kcb/lib/python3.10/site-packages/gitdb/exc.pyr      ó    r   c                   @   r   )r   zDThrown if an object database cannot be initialized at the given pathNr   r   r   r   r   r      r   r   c                   @   ó   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                   @   r   )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                   @   r   )r	   z?Thrown if the parsing of a file failed due to an invalid formatNr   r   r   r   r   r	   +   r   r	   c                   @   r   )r   zcThrown if a possibly shortened name does not uniquely represent a single object
    in the databaseNr   r   r   r   r   r   /   r   r   c                   @   r   )r   z"The object had an unsupported typeNr   r   r   r   r   r   4   r   r   c                   @   r   )r
   zHThrown if the given operation cannot be supported by the object databaseNr   r   r   r   r   r
   8   r   r
   N)r   Ú
gitdb.utilr   Ú__all__Ú	Exceptionr   r   r   r   r	   r   r   r
   r   r   r   r   Ú<module>   s   