U
    ]gr                     @   s8   d Z G dd deZG dd deZG dd deZdS )z
errors and exceptions
c                   @   s   e Zd ZdZdS )ConfigurationErrorzB
    Error raised when a configuration problem is encountered
    N)__name__
__module____qualname____doc__ r   r   1/tmp/pip-unpacked-wheel-kizsipjx/limits/errors.pyr      s   r   c                       s*   e Zd ZdZeedd fddZ  ZS )ConcurrentUpdateErrorzR
    Error raised when an update to limit fails due to concurrent
    updates
    N)keyattemptsreturnc                    s   t  d| d| d d S )NzUnable to update z after z retries)super__init__)selfr	   r
   	__class__r   r   r      s    zConcurrentUpdateError.__init__)r   r   r   r   strintr   __classcell__r   r   r   r   r      s   r   c                   @   s    e Zd ZdZeddddZdS )StorageErrorz@
    Error raised when an error is encountered in a storage
    N)storage_errorr   c                 C   s
   || _ d S )N)r   )r   r   r   r   r   r      s    zStorageError.__init__)r   r   r   r   	Exceptionr   r   r   r   r   r      s   r   N)r   r   r   r   r   r   r   r   r   <module>   s   
