
    #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y)zModule with common exceptions    )
to_hex_shac                       e Zd ZdZy)ODBErrorz(All errors thrown by the object databaseN__name__
__module____qualname____doc__     )lib/python3.12/site-packages/gitdb/exc.pyr   r   	   s    2r   r   c                       e Zd ZdZy)InvalidDBRootzDThrown if an object database cannot be initialized at the given pathNr   r   r   r   r   r      s    Nr   r   c                       e Zd ZdZd Zy)	BadObjectzQThe object with the given SHA does not exist. Instantiate with the
    failed shac                 8    dt        | j                  d         z  S )NzBadObject: %sr   )r   argsselfs    r   __str__zBadObject.__str__   s    DIIaL!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y)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Fr   r   c                       e Zd ZdZy)
ParseErrorz?Thrown if the parsing of a file failed due to an invalid formatNr   r   r   r   r   r       s    Ir   r   c                       e Zd ZdZy)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y)BadObjectTypez"The object had an unsupported typeNr   r   r   r   r    r    )   s    ,r   r    c                       e Zd ZdZy)UnsupportedOperationzHThrown if the given operation cannot be supported by the object databaseNr   r   r   r   r"   r"   -   s    Rr   r"   N)r
   
gitdb.utilr   	Exceptionr   r   r   r   r   r   r    r"   r   r   r   <module>r%      su   
 $ !3y 3OH O: :Fh FJ J( 
-H -S8 Sr   