Module geolocate.exceptions

Defining exceptions for geolocate module.

Expand source code
# -*- coding: utf-8 -*-
"""
Defining exceptions for geolocate module.
"""


class GeolocateError(Exception):
    """
    Base class for geolocate errors.
    """


class GeolocateNotFoundError(GeolocateError):
    """
    Error raised when a geolocation is not found.
    """


class GeolocateUnknownCallbackError(GeolocateError):
    """
    Error raised when an unknown callback is used.
    """

Classes

class GeolocateError (*args, **kwargs)

Base class for geolocate errors.

Expand source code
class GeolocateError(Exception):
    """
    Base class for geolocate errors.
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class GeolocateNotFoundError (*args, **kwargs)

Error raised when a geolocation is not found.

Expand source code
class GeolocateNotFoundError(GeolocateError):
    """
    Error raised when a geolocation is not found.
    """

Ancestors

class GeolocateUnknownCallbackError (*args, **kwargs)

Error raised when an unknown callback is used.

Expand source code
class GeolocateUnknownCallbackError(GeolocateError):
    """
    Error raised when an unknown callback is used.
    """

Ancestors