File: errors.py

package info (click to toggle)
python-aiolivisi 0.0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 108 kB
  • sloc: python: 389; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Errors for the Livisi Smart Home component."""

class LivisiException(Exception):
    """Base class for Livisi exceptions."""


class ShcUnreachableException(LivisiException):
    """Unable to connect to the Smart Home Controller."""


class WrongCredentialException(LivisiException):
    """The user credentials were wrong."""


class IncorrectIpAddressException(LivisiException):
    """The IP address provided by the user is incorrect."""


class TokenExpiredException(LivisiException):
    """The authentication token is expired."""