U
    )3gØ  ã                	   @   sª   d Z ddlmZ ddddddd	d
dg	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_shaÚAmbiguousObjectNameÚBadNameÚ	BadObjectÚBadObjectTypeÚInvalidDBRootÚODBErrorÚ
ParseErrorÚUnsupportedOperationr   c                   @   s   e Zd ZdZdS )r   z(All errors thrown by the object databaseN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú-/tmp/pip-unpacked-wheel-ziihlmit/gitdb/exc.pyr      s   c                   @   s   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   c                   @   s   e Zd ZdZdd„ ZdS )r   zQThe 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   c                   @   s   e Zd ZdZdd„ ZdS )r   z.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   c                   @   s   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   c                   @   s   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   c                   @   s   e Zd ZdZdS )r   z"The object had an unsupported typeNr   r   r   r   r   r   4   s   c                   @   s   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   N)r   Z
gitdb.utilr   Ú__all__Ú	Exceptionr   r   r   r   r	   r   r   r
   r   r   r   r   Ú<module>   s&   ÷