
    o}gE                     >     G d  de           Z G d de          ZdS )c                   8     e Zd ZdZ fdZed             Z xZS )ResponseErrorz4 Something was wrong with the response from Google. c                 X    t                                          |           || _        d S )N)super__init__response)selfmessager   	__class__s      S/var/www/py-google-trends/myenv/lib/python3.11/site-packages/pytrends/exceptions.pyr   zResponseError.__init__   s&    !!!     c                 .    d|j          } | ||          S )Nz9The request failed: Google returned a response with code )status_code)clsr   r	   s      r   from_responsezResponseError.from_response	   s$    dhNbdds7H%%%r   )__name__
__module____qualname____doc__r   classmethodr   __classcell__)r
   s   @r   r   r      sY        >>! ! ! ! !
 & & [& & & & &r   r   c                       e Zd ZdZdS )TooManyRequestsErrorz= Exception raised when the backend returns a 429 error code. N)r   r   r   r    r   r   r   r      s        GGDr   r   N)	Exceptionr   r   r   r   r   <module>r      sc   & & & & &I & & &	 	 	 	 	= 	 	 	 	 	r   