Skip to content

Exceptions

BTAdapterNotFoundError

Bases: Exception

No Bluetooth adapter was found.

Source code in scientisst/exceptions.py
10
11
12
13
14
15
16
class BTAdapterNotFoundError(Exception):
    """
    No Bluetooth adapter was found.
    """

    def __init__(self):
        super().__init__("No Bluetooth adapter was found.")

ContactingDeviceError

Bases: Exception

The computer lost communication with the device.

Source code in scientisst/exceptions.py
28
29
30
31
32
33
34
class ContactingDeviceError(Exception):
    """
    The computer lost communication with the device.
    """

    def __init__(self):
        super().__init__("The computer lost communication with the device.")

DeviceNotFoundError

Bases: Exception

The device could not be found.

Source code in scientisst/exceptions.py
19
20
21
22
23
24
25
class DeviceNotFoundError(Exception):
    """
    The device could not be found.
    """

    def __init__(self):
        super().__init__("The device could not be found.")

DeviceNotIdleError

Bases: Exception

The device is not idle.

Source code in scientisst/exceptions.py
57
58
59
60
61
62
63
class DeviceNotIdleError(Exception):
    """
    The device is not idle.
    """

    def __init__(self):
        super().__init__("The device is not idle.")

DeviceNotInAcquisitionError

Bases: Exception

The device is not in acquisition mode.

Source code in scientisst/exceptions.py
66
67
68
69
70
71
72
class DeviceNotInAcquisitionError(Exception):
    """
    The device is not in acquisition mode.
    """

    def __init__(self):
        super().__init__("The device is not in acquisition mode.")

InvalidAddressError

Bases: Exception

The specified address is invalid.

Source code in scientisst/exceptions.py
1
2
3
4
5
6
7
class InvalidAddressError(Exception):
    """
    The specified address is invalid.
    """

    def __init__(self):
        super().__init__("The specified address is invalid.")

InvalidParameterError

Bases: Exception

Invalid parameter.

Source code in scientisst/exceptions.py
75
76
77
78
79
80
81
class InvalidParameterError(Exception):
    """
    Invalid parameter.
    """

    def __init__(self):
        super().__init__("Invalid parameter.")

NotSupportedError

Bases: Exception

Operation not supported by the device.

Source code in scientisst/exceptions.py
84
85
86
87
88
89
90
class NotSupportedError(Exception):
    """
    Operation not supported by the device.
    """

    def __init__(self):
        super().__init__("Operation not supported by the device.")

PortCouldNotBeOpenedError

Bases: Exception

The communication port does not exist or it is already being used.

Source code in scientisst/exceptions.py
37
38
39
40
41
42
43
44
45
class PortCouldNotBeOpenedError(Exception):
    """
    The communication port does not exist or it is already being used.
    """

    def __init__(self):
        super().__init__(
            "The communication port does not exist or it is already being used."
        )

PortInitializationError

Bases: Exception

The communication port could not be initialized.

Source code in scientisst/exceptions.py
48
49
50
51
52
53
54
class PortInitializationError(Exception):
    """
    The communication port could not be initialized.
    """

    def __init__(self):
        super().__init__("The communication port could not be initialized.")

UnknownError

Bases: Exception

Unknown error: message.

Source code in scientisst/exceptions.py
93
94
95
96
97
98
99
class UnknownError(Exception):
    """
    Unknown error: `message`.
    """

    def __init__(self, message=""):
        super().__init__("Unknown error: {}".format(message))

Last update: 2021-11-30