| 1 |
class InvalidAuth(Exception): |
| 2 |
"""Error to indicate an authentication failure.""" |
| 3 |
|
| 4 |
|
| 5 |
class InvalidAirQResponse(Exception): |
| 6 |
"""Error to indicate incorrect / unexpected response from the device""" |
| 7 |
|
| 8 |
|
| 9 |
class InvalidIpAddress(Exception): |
| 10 |
"""Error to indicate in invalid IP address. air-Q only supports IPv4 addresses.""" |
| 11 |
|
| 12 |
|
| 13 |
class APIAccessDenied(Exception): |
| 14 |
"""Raised at an attempt to access air-Q Science API without the subscription.""" |
| 15 |
|
| 16 |
|
| 17 |
class APIAccessError(Exception): |
| 18 |
"""Unspecific error reported by the air-Q API.""" |