a
    a*j                     @  sD   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d	S )
z
errors and exceptions
    )annotationsc                   @  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   I/var/www/html/assistant/venv/lib/python3.9/site-packages/limits/errors.pyr      s   r   c                      s*   e Zd ZdZdddd fddZ  ZS )ConcurrentUpdateErrorzR
    Error raised when an update to limit fails due to concurrent
    updates
    strintNone)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   r   __classcell__r   r   r   r	   r
      s   r
   c                   @  s    e Zd ZdZdddddZdS )StorageErrorz@
    Error raised when an error is encountered in a storage
    	Exceptionr   )storage_errorr   c                 C  s
   || _ d S )N)r   )r   r   r   r   r	   r      s    zStorageError.__init__N)r   r   r   r   r   r   r   r   r	   r      s   r   N)r   
__future__r   r   r   r
   r   r   r   r   r	   <module>   s   
