File: errors.py

package info (click to toggle)
gnome-keysign 1.3.0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,460 kB
  • sloc: python: 5,143; xml: 126; makefile: 33; sh: 16
file content (22 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (4)
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"""