| 1 |
# Copyright 2023 Simone Chemelli and contributors |
| 2 |
# SPDX-License-Identifier: Apache-2.0 |
| 3 |
"""Comelit SimpleHome library exceptions.""" |
| 4 |
|
| 5 |
from __future__ import annotations |
| 6 |
|
| 7 |
|
| 8 |
class ComelitError(Exception): |
| 9 |
"""Base class for aiocomelit errors.""" |
| 10 |
|
| 11 |
|
| 12 |
class CannotConnect(ComelitError): |
| 13 |
"""Exception raised when connection fails.""" |
| 14 |
|
| 15 |
|
| 16 |
class CannotAuthenticate(ComelitError): |
| 17 |
"""Exception raised when credentials are incorrect.""" |
| 18 |
|
| 19 |
|
| 20 |
class CannotRetrieveData(ComelitError): |
| 21 |
"""Exception raised when data retrieval fails.""" |
| 22 |
|
| 23 |
|
| 24 |
class DeviceStorageFailureError(ComelitError): |
| 25 |
"""Exception raised when device SD storage is failing or becoming unreliable.""" |