1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
class BluetoothException(Exception):
"""Parent class for all Bluetooth-related errors"""
class NoBluezDbus(BluetoothException):
"""The required org.bluez dbus is not available"""
class NoAdapter(BluetoothException):
"""There isn't an usable Bluetooth adapter"""
class UnpoweredAdapter(BluetoothException):
"""The Bluetooth adapter is turned off"""
class AvahiException(Exception):
"""Parent class for all Avahi-related errors"""
class NoAvahiDbus(AvahiException):
"""The required avahi dbus is not available"""
|