
    ZeIi*                    `    d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d dej	                  Z
d	S )
zerrors and exceptions.    )annotations)Response)
exceptions   )RuntimeLimitc                  &     e Zd ZdZd
d fd	Z xZS )RateLimitExceededz*Exception raised when a rate limit is hit.Nlimitr   responseResponse | NonereturnNonec                    || _         || _        |j        r0t          |j                  s|j        n|                                }nt	          |j                   }t                                          ||           dS )aF  
        :param limit: The actual rate limit that was hit. This is used to construct the default
         response message
        :param response: Optional pre constructed response. If provided it will be rendered by
         flask instead of the default error response of :class:`~werkzeug.exceptions.HTTPException`
        )descriptionr   N)r
   r   error_messagecallablestrsuper__init__)selfr
   r   r   	__class__s       Y/var/www/html/MCyber-Diagnostic/venv/lib/python3.11/site-packages/flask_limiter/errors.pyr   zRateLimitExceeded.__init__   s     
  	++3E4G+H+Hc##eNaNaNcNc K ek**K[8DDDDD    )N)r
   r   r   r   r   r   )__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r	   r	      sS        44E E E E E E E E E E Er   r	   N)r   
__future__r   flask.wrappersr   werkzeugr   _limitsr   TooManyRequestsr	    r   r   <module>r%      s      " " " " " " # # # # # #       ! ! ! ! ! !E E E E E
2 E E E E Er   