Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/geoip2/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/geoip2/__pycache__/errors.cpython-35.pyc



�IX��@s�dZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�ZdS)z
Errors
======

c@seZdZdZdS)�GeoIP2Errorz�There was a generic error in GeoIP2.

    This class represents a generic error. It extends :py:exc:`RuntimeError`
    and does not add any additional attributes.

    N)�__name__�
__module__�__qualname__�__doc__�rr�>/opt/alt/python35/lib/python3.5/site-packages/geoip2/errors.pyrsrc@seZdZdZdS)�AddressNotFoundErrorz.The address you were looking up was not found.N)rrrrrrrrrsrc@seZdZdZdS)�AuthenticationErrorz/There was a problem authenticating the request.N)rrrrrrrrr	sr	cs.eZdZdZdd�fdd�Z�S)�	HTTPErroraThere was an error when making your HTTP request.

    This class represents an HTTP transport error. It extends
    :py:exc:`GeoIP2Error` and adds attributes of its own.

    :ivar http_status: The HTTP status code returned
    :ivar uri: The URI queried

    Ncs,tt|�j|�||_||_dS)N)�superr
�__init__�http_status�uri)�self�messager
r)�	__class__rrr$s	zHTTPError.__init__)rrrrrrr)rrr
s	r
c@seZdZdZdS)�InvalidRequestErrorzThe request was invalid.N)rrrrrrrrr*src@seZdZdZdS)�OutOfQueriesErrorz5Your account is out of funds for the service queried.N)rrrrrrrrr.src@seZdZdZdS)�PermissionRequiredErrorz=Your account does not have permission to access this service.N)rrrrrrrrr2srN)	r�RuntimeErrorrrr	r
rrrrrrr�<module>s