File: exceptions.py

package info (click to toggle)
python-airos 0.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 704 kB
  • sloc: python: 2,967; sh: 19; makefile: 3
file content (49 lines) | stat: -rw-r--r-- 1,273 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""Ubiquiti AirOS Exceptions."""


class AirOSException(Exception):
    """Base error class for this AirOS library."""


class AirOSConnectionSetupError(AirOSException):
    """Raised when unable to prepare authentication."""


class AirOSConnectionAuthenticationError(AirOSException):
    """Raised when unable to authenticate."""


class AirOSDataMissingError(AirOSException):
    """Raised when expected data is missing."""


class AirOSKeyDataMissingError(AirOSException):
    """Raised when return data is missing critical keys."""


class AirOSDeviceConnectionError(AirOSException):
    """Raised when unable to connect."""


class AirOSDiscoveryError(AirOSException):
    """Base exception for AirOS discovery issues."""


class AirOSListenerError(AirOSDiscoveryError):
    """Raised when the AirOS listener encounters an error."""


class AirOSEndpointError(AirOSDiscoveryError):
    """Raised when there's an issue with the network endpoint."""


class AirOSNotSupportedError(AirOSException):
    """Raised when method not available for device."""


class AirOSUrlNotFoundError(AirOSException):
    """Raised when url not available for device."""


class AirOSMultipleMatchesFoundException(AirOSException):
    """Raised when multiple devices found for lookup."""