Source code for bluetooth_clocks.exceptions

"""Module with exceptions raised by this library."""


[docs] class BluetoothClocksError(Exception): """Base class for all exceptions raised by this library."""
[docs] class InvalidTimeBytesError(BluetoothClocksError): """Exception raised when bytes read from a device don't have the right format."""
[docs] class TimeNotReadableError(BluetoothClocksError): """Exception raised when reading the time on a device that doesn't support this."""
[docs] class UnsupportedDeviceError(BluetoothClocksError): """Exception raised when a device is not supported."""