
    g                         d Z  G d de      Z G d dee      Z G d de      Z G d dee      Z G d	 d
e      Z G d dee      Z	 G d de      Z
 G d de      Z G d dee      Z G d dee      Z G d de      Z G d dee      Zy)z
Exceptions raised by geopy.
c                       e Zd ZdZy)
GeopyErrorzF
    Geopy-specific exceptions are all inherited from GeopyError.
    N__name__
__module____qualname____doc__     I/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/geopy/exc.pyr   r      s    r
   r   c                       e Zd ZdZy)ConfigurationErrorz
    When instantiating a geocoder, the arguments given were invalid. See
    the documentation of each geocoder's ``__init__`` for more details.
    Nr   r	   r
   r   r   r          r
   r   c                       e Zd ZdZy)GeocoderServiceErrora  
    There was an exception caused when calling the remote geocoding service,
    and no more specific exception could be raised by geopy. When calling
    geocoders' ``geocode`` or `reverse` methods, this is the most generic
    exception that can be raised, and any non-geopy exception will be caught
    and turned into this. The exception's message will be that of the
    original exception.
    Nr   r	   r
   r   r   r      s    r
   r   c                       e Zd ZdZy)GeocoderQueryErrorz
    Either geopy detected input that would cause a request to fail,
    or a request was made and the remote geocoding service responded
    that the request was bad.
    Nr   r	   r
   r   r   r          r
   r   c                       e Zd ZdZy)GeocoderQuotaExceededzp
    The remote geocoding service refused to fulfill the request
    because the client has used its quota.
    Nr   r	   r
   r   r   r   &   r   r
   r   c                   (     e Zd ZdZdd fd
Z xZS )GeocoderRateLimitedaK  
    The remote geocoding service has rate-limited the request.
    Retrying later might help.

    Exception of this type has a ``retry_after`` attribute,
    which contains amount of time (in seconds) the service
    has asked to wait. Might be ``None`` if there were no such
    data in response.

    .. versionadded:: 2.2
    N)retry_afterc                2    t         |   |       || _        y )N)super__init__r   )selfmessager   	__class__s      r   r   zGeocoderRateLimited.__init__:   s    !&r
   )r   r   r   r   r   __classcell__)r   s   @r   r   r   -   s    
 04 ' 'r
   r   c                       e Zd ZdZy)GeocoderAuthenticationFailurez{
    The remote geocoding service rejected the API key or account
    credentials this geocoder was instantiated with.
    Nr   r	   r
   r   r!   r!   ?   r   r
   r!   c                       e Zd ZdZy)GeocoderInsufficientPrivilegeszl
    The remote geocoding service refused to fulfill a request using the
    account credentials given.
    Nr   r	   r
   r   r#   r#   F   r   r
   r#   c                       e Zd ZdZy)GeocoderTimedOuta(  
    The call to the geocoding service was aborted because no response
    has been received within the ``timeout`` argument of either
    the geocoding class or, if specified, the method call.
    Some services are just consistently slow, and a higher timeout
    may be needed to use them.
    Nr   r	   r
   r   r%   r%   M   s    r
   r%   c                       e Zd ZdZy)GeocoderUnavailablez
    Either it was not possible to establish a connection to the remote
    geocoding service, or the service responded with a code indicating
    it was unavailable.
    Nr   r	   r
   r   r'   r'   W   r   r
   r'   c                       e Zd ZdZy)GeocoderParseErrorzc
    Geopy could not parse the service's response. This is probably due
    to a bug in geopy.
    Nr   r	   r
   r   r)   r)   _   r   r
   r)   c                       e Zd ZdZy)GeocoderNotFoundz
    Caller requested the geocoder matching a string, e.g.,
    ``"google"`` > ``GoogleV3``, but no geocoder could be found.
    Nr   r	   r
   r   r+   r+   f   r   r
   r+   N)r   	Exceptionr   
ValueErrorr   r   r   r   IOErrorr   r!   r#   TimeoutErrorr%   r'   r)   r+   r	   r
   r   <module>r0      s   
 Z : -z 0 '/ '$$8 %9 +\ . - z: r
   