Source code for aioafero.errors
"""Errors used through aioafero."""
[docs]
class AferoError(Exception):
"""Generic exception for Afero API or the responses."""
[docs]
class DeviceNotFound(AferoError):
"""Device not found within the controller."""
[docs]
class DeviceUpdateError(AferoError):
"""Unable to send a device update to Afero API."""
[docs]
class ExceededMaximumRetries(AferoError):
"""Maximum retries exceeded when contacting Afero API."""
[docs]
class InvalidAuth(AferoError):
"""Invalid credentials supplied during authentication."""
[docs]
class InvalidResponse(AferoError):
"""An invalid response was received from Afero API."""
[docs]
class SecuritySystemError(AferoError):
"""Generic exception for Afero Security System issues."""
[docs]
class OTPError(AferoError):
"""Issue occurred with OTP authentication."""
[docs]
class OTPRequired(AferoError):
"""One-time password is required for login."""
[docs]
class InvalidOTP(OTPError):
"""One-time password provided is invalid."""