
    s%i                         d Z  G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d dee      Zy)z?
Defines exceptions that are thrown by the Google Maps client.
c                       e Zd ZdZddZd Zy)ApiErrorz3Represents an exception returned by the remote API.Nc                      || _         || _        y N)statusmessage)selfr   r   s      s/var/www/html/navyabakers_fullstack/navyabakers_prod/venv_new/lib/python3.12/site-packages/googlemaps/exceptions.py__init__zApiError.__init__   s        c                 |    | j                   t        | j                        S | j                  d| j                   dS )Nz ())r   strr   r   s    r	   __str__zApiError.__str__   s.    <<t{{## $T\\::r   r   __name__
__module____qualname____doc__r
   r    r   r	   r   r      s    =;r   r   c                       e Zd ZdZddZd Zy)TransportErrorz9Something went wrong while trying to execute the request.Nc                     || _         y r   )base_exception)r   r   s     r	   r
   zTransportError.__init__%   s
    ,r   c                 F    | j                   rt        | j                         S y)NzAn unknown error occurred.)r   r   r   s    r	   r   zTransportError.__str__(   s    t**+++r   r   r   r   r   r	   r   r   "   s    C-,r   r   c                       e Zd ZdZd Zd Zy)	HTTPErrorz"An unexpected HTTP error occurred.c                     || _         y r   status_code)r   r    s     r	   r
   zHTTPError.__init__0   s
    &r   c                      d| j                   z  S )NzHTTP Error: %dr   r   s    r	   r   zHTTPError.__str__3   s    $"2"222r   Nr   r   r   r	   r   r   .   s    ,'3r   r   c                       e Zd ZdZy)TimeoutzThe request timed out.Nr   r   r   r   r   r   r	   r#   r#   6   s     r   r#   c                       e Zd ZdZy)_RetriableRequestz*Signifies that the request can be retried.Nr$   r   r   r	   r&   r&   :   s    4r   r&   c                       e Zd ZdZy)_OverQueryLimitzSignifies that the request failed because the client exceeded its query rate limit.

    Normally we treat this as a retriable condition, but we allow the calling code to specify that these requests should
    not be retried.
    Nr$   r   r   r	   r(   r(   >   s    
 	r   r(   N)r   	Exceptionr   r   r   r#   r&   r(   r   r   r	   <module>r*      sU   $
;y 
;
,Y 
,3 3	i 			 		h 1 	r   