o
    e                      @   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   </var/www/html/venv/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    
