File: exceptions.py

package info (click to toggle)
python-luftdaten 0.7.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 128 kB
  • sloc: python: 172; makefile: 6; sh: 5
file content (19 lines) | stat: -rw-r--r-- 349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Exceptions for the Luftdaten Wrapper."""


class LuftdatenError(Exception):
    """General LuftdatenError exception occurred."""

    pass


class LuftdatenConnectionError(LuftdatenError):
    """When a connection error is encountered."""

    pass


class LuftdatenNoDataAvailable(LuftdatenError):
    """When no data is available."""

    pass