core/homeassistant/components/axis/errors.py

24 lines
487 B
Python

"""Errors for the Axis component."""
from homeassistant.exceptions import HomeAssistantError
class AxisException(HomeAssistantError):
"""Base class for Axis exceptions."""
class AlreadyConfigured(AxisException):
"""Device is already configured."""
class AuthenticationRequired(AxisException):
"""Unknown error occurred."""
class CannotConnect(AxisException):
"""Unable to connect to the device."""
class UserLevel(AxisException):
"""User level too low."""