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."""
|