forked from lukasjapan/bt-speaker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexceptions.py
51 lines (38 loc) · 1.15 KB
/
exceptions.py
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
50
51
from __future__ import unicode_literals
import dbus
class BTSignalNameNotRecognisedException:
"""
Exception raised for when a signal name is not recognized.
Check the originating class for a list of supported signal names
"""
pass
class BTDeviceNotSpecifiedException:
"""
Exception raised for when a device is not specified
"""
pass
class BTRejectedException(dbus.DBusException):
"""
Exception raised to notify that the user rejected
a pairing attempt.
"""
_dbus_error_name = "org.bluez.Error.Rejected"
class BTInvalidConfiguration(dbus.DBusException):
"""
Exception raised to denote an invalid configuration
parameter
"""
_dbus_error_name = "org.bluez.Error.InvalidConfiguration"
class BTIncompatibleTransportAccessType(dbus.DBusException):
"""
Exception raised when attempting to access a media
transport file descriptor without correct access
permissions.
"""
_dbus_error_name = "org.bluez.Error.InvalidConfiguration"
class BTUUIDNotSpecifiedException:
"""
Exception raised when creating a UUID without providing
a valid UUID number
"""
pass