Module sharkiq.exc
Exceptions.
Classes
-
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
-
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
-
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
-
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
-
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