o
    ;h                     @  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   @/var/www/html/venv/lib/python3.10/site-packages/limits/errors.pyr      s    r   c                      s"   e Zd ZdZd
 fdd	Z  ZS )ConcurrentUpdateErrorzR
    Error raised when an update to limit fails due to concurrent
    updates
    keystrattemptsintreturnNonec                   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   r   )r   r   r   r   r   __classcell__r   r   r   r	   r
      s    r
   c                   @  s   e Zd ZdZd	ddZdS )
StorageErrorz@
    Error raised when an error is encountered in a storage
    storage_error	Exceptionr   r   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   r   r   r	   r      s    r   N)r   
__future__r   r   r   r
   r   r   r   r   r	   <module>   s
    
