Exceptions and warnings for pytan3.auth_methods
.
pytan3.auth_methods.exceptions.
ModuleError
[source]¶Bases: pytan3.exceptions.PyTanError
Parent of all exceptions for pytan3.auth_methods
.
pytan3.auth_methods.exceptions.
ModuleWarning
[source]¶Bases: pytan3.exceptions.PyTanWarning
Parent of all warnings for pytan3.auth_methods
.
Thrown by:
pytan3.auth_methods.exceptions.
MethodError
(auth_method, info=None, response=None)[source]¶Bases: pytan3.auth_methods.exceptions.ModuleError
Parent of all pytan3.auth_methods.AuthMethod
exceptions.
Thrown by:
__init__
(auth_method, info=None, response=None)[source]¶Constructor.
Parameters: |
|
---|
pytan3.auth_methods.exceptions.
InvalidToken
(auth_method, info=None, response=None)[source]¶Bases: pytan3.auth_methods.exceptions.MethodError
Thrown when validate_token fails.
pytan3.auth_methods.exceptions.
NotLoggedInError
(auth_method, info=None, response=None)[source]¶Bases: pytan3.auth_methods.exceptions.MethodError
Thrown when logout called before login.
pytan3.auth_methods.exceptions.
LoginError
(auth_method, info=None, response=None)[source]¶Bases: pytan3.auth_methods.exceptions.MethodError
Thrown when login response has any status_code other than 200.
pytan3.auth_methods.exceptions.
LogoutError
(auth_method, info=None, response=None)[source]¶Bases: pytan3.auth_methods.exceptions.MethodError
Thrown when logout fails.