U
    æ¥¡c  ã                   @   s”   d Z ddlm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_shac                   @   s   e Zd ZdZdS )ÚODBErrorz(All errors thrown by the object databaseN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r	   r	   ú-/tmp/pip-unpacked-wheel-jjg5dubb/gitdb/exc.pyr   	   s   r   c                   @   s   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   r   c                   @   s   e Zd ZdZdd„ ZdS )Ú	BadObjectzQThe 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                   @   s   e Zd ZdZdd„ ZdS )ÚBadNamez.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                   @   s   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   r   c                   @   s   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   c                   @   s   e Zd ZdZdS )ÚBadObjectTypez"The object had an unsupported typeNr   r	   r	   r	   r
   r   )   s   r   c                   @   s   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   N)r   Z
gitdb.utilr   Ú	Exceptionr   r   r   r   r   r   r   r   r	   r	   r	   r
   Ú<module>   s   