File: exceptions.py

package info (click to toggle)
python-iometer 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: python: 591; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Asynchronous Python client for IOmeter."""


class IOmeterError(Exception):
    """Generic exception."""


class IOmeterConnectionError(IOmeterError):
    """IOmeter connection exception."""


class IOmeterTimeoutError(IOmeterError):
    """IOmeter client and bridge timeout exception."""


class IOmeterNoReadingsError(IOmeterError):
    """No readings available exception."""


class IOmeterNoStatusError(IOmeterError):
    """No status available exception."""