aboutsummaryrefslogtreecommitdiffstats
path: root/fnme/exceptions.py
blob: 29e317e41b4e93554369023de51e13ab43b6e220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class LocationError(Exception):
    """Exception raised for errors related to fetching location.

    Attributes:
        message -- explanation of the error
    """

    def __init__(self, message):
        self.message = message
        super().__init__(self.message)


class DataFetchError(Exception):
    """Exception raised for errors related to fetching latest data.

    Attributes:
        message -- explanation of the error
    """

    def __init__(self, message):
        self.message = message
        super().__init__(self.message)


class InvalidDataError(Exception):
    """Exception raised for errors related to the contents of the data.

    Attributes:
        message -- explanation of the error
    """

    def __init__(self, message):
        self.message = message
        super().__init__(self.message)
git.ajschof.me — hosted by ajschofield — powered by cgit