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."""
|