o
    ÔèFh   ã                   @   sÔ   d Z G dd„ deƒZG dd„ deeƒZG dd„ deƒZG dd„ deeƒZG d	d
„ d
eƒZG dd„ deeƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deeƒZG dd„ deeƒZG dd„ deƒZG dd„ deeƒZdS )z
Exceptions raised by geopy.
c                   @   ó   e Zd ZdZdS )Ú
GeopyErrorzF
    Geopy-specific exceptions are all inherited from GeopyError.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úB/var/www/html/loop/nvenv/lib/python3.10/site-packages/geopy/exc.pyr      ó    r   c                   @   r   )Ú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                   @   r   )Ú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      r
   r   c                   @   r   )Ú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                   @   r   )Ú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   c                       s&   e Zd ZdZddœ‡ fdd„
Z‡  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                   s   t ƒ  |¡ || _d S )N)ÚsuperÚ__init__r   )ÚselfÚmessager   ©Ú	__class__r   r	   r   :   s   
zGeocoderRateLimited.__init__)r   r   r   r   r   Ú__classcell__r   r   r   r	   r   -   s    r   c                   @   r   )Ú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   c                   @   r   )ÚGeocoderInsufficientPrivilegeszl
    The remote geocoding service refused to fulfill a request using the
    account credentials given.
    Nr   r   r   r   r	   r   F   r
   r   c                   @   r   )Ú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   r
   r   c                   @   r   )Ú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   c                   @   r   )Ú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   c                   @   r   )Ú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   N)r   Ú	Exceptionr   Ú
ValueErrorr   r   r   r   ÚIOErrorr   r   r   ÚTimeoutErrorr   r   r   r   r   r   r   r	   Ú<module>   s    
