Module sharkiq.exc

Exceptions.

Classes

class SharkIqAuthError (msg='Error authenticating to Ayla Networks.', *args)
Expand source code
class SharkIqAuthError(SharkIqError):
    """Exception authenticating."""
    def __init__(self, msg=AUTH_FAILURE_MESSAGE, *args):
        super().__init__(msg, *args)

Exception authenticating.

Ancestors

  • SharkIqError
  • builtins.RuntimeError
  • builtins.Exception
  • builtins.BaseException
class SharkIqAuthExpiringError (msg='Ayla Networks API authentication expired. Re-authenticate and retry.',
*args)
Expand source code
class SharkIqAuthExpiringError(SharkIqError):
    """Authentication expired and needs to be refreshed."""
    def __init__(self, msg=AUTH_EXPIRED_MESSAGE, *args):
        super().__init__(msg, *args)

Authentication expired and needs to be refreshed.

Ancestors

  • SharkIqError
  • builtins.RuntimeError
  • builtins.Exception
  • builtins.BaseException
class SharkIqError (*args, **kwargs)
Expand source code
class SharkIqError(RuntimeError):
    """Parent class for all Shark IQ exceptions."""

Parent class for all Shark IQ exceptions.

Ancestors

  • builtins.RuntimeError
  • builtins.Exception
  • builtins.BaseException

Subclasses

class SharkIqNotAuthedError (msg='Ayla Networks API not authenticated. Authenticate first and retry.',
*args)
Expand source code
class SharkIqNotAuthedError(SharkIqError):
    """Shark not authorized"""
    def __init__(self, msg=NOT_AUTHED_MESSAGE, *args):
        super().__init__(msg, *args)

Shark not authorized

Ancestors

  • SharkIqError
  • builtins.RuntimeError
  • builtins.Exception
  • builtins.BaseException
class SharkIqReadOnlyPropertyError (*args, **kwargs)
Expand source code
class SharkIqReadOnlyPropertyError(SharkIqError):
    """Tried to set a read-only property"""
    pass

Tried to set a read-only property

Ancestors

  • SharkIqError
  • builtins.RuntimeError
  • builtins.Exception
  • builtins.BaseException