
    .Ph                         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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__     I/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/gitdb/exc.pyr	   r	      s        2222r   r	   c                       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        NNNNr   r   c                       e Zd ZdZd ZdS )r   zQThe 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 )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8F F F F Fr   r   c                       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        IIIIr   r
   c                       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   r   c                       e Zd ZdZdS )r   z"The object had an unsupported typeNr   r   r   r   r   r   4   s        ,,,,r   r   c                       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RRRr   r   N)r   
gitdb.utilr   __all__	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   