
    g                         d Z ddlmZ g d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_sha)	AmbiguousObjectNameBadName	BadObjectBadObjectTypeInvalidDBRootODBError
ParseErrorUnsupportedOperationr   c                       e Zd ZdZy)r	   z(All errors thrown by the object databaseN__name__
__module____qualname____doc__     >/var/www/openai/venv/lib/python3.12/site-packages/gitdb/exc.pyr	   r	      s    2r   r	   c                       e Zd ZdZy)r   zDThrown 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)r   zQThe 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)r   z.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)r
   z?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)r   zcThrown 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)r   z"The object had an unsupported typeNr   r   r   r   r   r   4   s    ,r   r   c                       e Zd ZdZy)r   zHThrown if the given operation cannot be supported by the object databaseNr   r   r   r   r   r   8   s    Rr   r   N)r   
gitdb.utilr   __all__	Exceptionr	   r   r   r   r
   r   r   r   r   r   r   <module>r&      s|   
 $ !
3y 3OH O: :Fh FJ J( 
-H -S8 Sr   