Source code for luma.core.error

# -*- coding: utf-8 -*-
# Copyright (c) 2017-18 Richard Hull and contributors
# See LICENSE.rst for details.

"""
Exceptions for this library.
"""


[docs] class Error(Exception): """ Base class for exceptions in this library. """ pass
[docs] class DeviceNotFoundError(Error): """ Exception raised when a device cannot be found. """
[docs] class DevicePermissionError(Error): """ Exception raised when permission to access the device is denied. """
[docs] class DeviceAddressError(Error): """ Exception raised when an invalid device address is detected. """
[docs] class DeviceDisplayModeError(Error): """ Exception raised when an invalid device display mode is detected. """
[docs] class UnsupportedPlatform(Error): """ Exception raised when trying to use the library on an incompatible system. .. versionadded:: 0.5.2 """