24 lines
575 B
Python
24 lines
575 B
Python
"""Exception types for the shiningmask package."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class MaskError(Exception):
|
|
"""Base class for all mask errors."""
|
|
|
|
|
|
class MaskNotFound(MaskError):
|
|
"""No mask matching the scan filter was found in time."""
|
|
|
|
|
|
class MaskNotConnected(MaskError):
|
|
"""An operation needed a live BLE connection but none was established."""
|
|
|
|
|
|
class NotificationTimeout(MaskError):
|
|
"""The mask did not send the expected notification in time."""
|
|
|
|
|
|
class UploadError(MaskError):
|
|
"""A bitmap/image upload failed or was already in progress."""
|