
    #Cc`                         d Z 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 G d de          Z G d de          Z	 G d de          Z
 G d de          ZdS )zModule with common exceptions    )
to_hex_shac                       e Zd ZdZdS )ODBErrorz(All errors thrown by the object databaseN__name__
__module____qualname____doc__     )lib/python3.11/site-packages/gitdb/exc.pyr   r   	   s        2222r   r   c                       e Zd ZdZdS )InvalidDBRootzDThrown if an object database cannot be initialized at the given pathNr   r   r   r   r   r      s        NNNNr   r   c                       e Zd ZdZd ZdS )	BadObjectzQThe object with the given SHA does not exist. Instantiate with the
    failed shac                 <    dt          | j        d                   z  S )NzBadObject: %sr   )r   argsselfs    r   __str__zBadObject.__str__   s    DIaL!9!999r   Nr   r   r	   r
   r   r   r   r   r   r      s-         : : : : :r   r   c                       e Zd ZdZd ZdS )BadNamez.A name provided to rev_parse wasn't understoodc                 "    d| j         d         z  S )Nz%Ref '%s' did not resolve to an objectr   )r   r   s    r   r   zBadName.__str__   s    61EEr   Nr   r   r   r   r   r      s.        88F F F F Fr   r   c                       e Zd ZdZdS )
ParseErrorz?Thrown if the parsing of a file failed due to an invalid formatNr   r   r   r   r   r       s        IIIIr   r   c                       e Zd ZdZdS )AmbiguousObjectNamezcThrown if a possibly shortened name does not uniquely represent a single object
    in the databaseNr   r   r   r   r   r   $   s           r   r   c                       e Zd ZdZdS )BadObjectTypez"The object had an unsupported typeNr   r   r   r   r    r    )   s        ,,,,r   r    c                       e Zd ZdZdS )UnsupportedOperationzHThrown if the given operation cannot be supported by the object databaseNr   r   r   r   r"   r"   -   s        RRRRr   r"   N)r
   
gitdb.utilr   	Exceptionr   r   r   r   r   r   r    r"   r   r   r   <module>r%      s  
 $ # ! ! ! ! ! !3 3 3 3 3y 3 3 3O O O O OH O O O: : : : : : : :F F F F Fh F F FJ J J J J J J J    (   
- - - - -H - - -S S S S S8 S S S S Sr   