Source code for bluetooth_numbers.exceptions
"""Module with exceptions raised by this library."""
[docs]class BluetoothNumbersError(Exception):
"""Base class for all exceptions raised by this library."""
[docs]class No16BitIntegerError(BluetoothNumbersError):
"""Exception raised when an integer is not a 16-bit number."""
[docs]class NonStandardUUIDError(BluetoothNumbersError):
"""Exception raised when a 128-bit UUID is not a standard Bluetooth UUID."""
[docs]class UnknownOUIError(BluetoothNumbersError):
"""Exception raised when an OUI is not known."""
[docs]class UnknownUUIDError(BluetoothNumbersError):
"""Exception raised when a UUID is not known."""
[docs]class WrongOUIFormatError(BluetoothNumbersError):
"""Exception raised when a string isn't a supported format for an OUI."""