File: exceptions.py

package info (click to toggle)
python-aioairq 0.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: python: 594; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class InvalidAuth(Exception):
    """Error to indicate an authentication failure."""


class InvalidAirQResponse(Exception):
    """Error to indicate incorrect / unexpected response from the device"""


class InvalidIpAddress(Exception):
    """Error to indicate in invalid IP address. air-Q only supports IPv4 addresses."""


class APIAccessDenied(Exception):
    """Raised at an attempt to access air-Q Science API without the subscription."""


class APIAccessError(Exception):
    """Unspecific error reported by the air-Q API."""