exceptions
Library exceptions.
APIError
¶
Bases: ImouException
Remote API error.
Source code in imouapi/exceptions.py
60 61 62 63 64 65 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
63 64 65 | |
ConnectionFailed
¶
Bases: ImouException
Failed to connect to the API.
Source code in imouapi/exceptions.py
36 37 38 39 40 41 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
39 40 41 | |
DeviceOffline
¶
Bases: ImouException
Device is offline.
Source code in imouapi/exceptions.py
76 77 78 79 80 81 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
79 80 81 | |
ImouException
¶
Bases: Exception
Base exception.
Source code in imouapi/exceptions.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
__init__(message='')
¶
Initialize.
Source code in imouapi/exceptions.py
9 10 11 12 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
23 24 25 | |
to_string()
¶
Return the exception as a string.
Source code in imouapi/exceptions.py
14 15 16 | |
traceback()
¶
Return the traceback as a string.
Source code in imouapi/exceptions.py
18 19 20 21 | |
InvalidConfiguration
¶
Bases: ImouException
Invalid App Id or App Secret provided.
Source code in imouapi/exceptions.py
44 45 46 47 48 49 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
47 48 49 | |
InvalidResponse
¶
Bases: ImouException
Malformed or unexpected API response.
Source code in imouapi/exceptions.py
68 69 70 71 72 73 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
71 72 73 | |
NotAuthorized
¶
Bases: ImouException
Not authorized to operate on the device or invalid device id.
Source code in imouapi/exceptions.py
52 53 54 55 56 57 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
55 56 57 | |
NotConnected
¶
Bases: ImouException
Action requested but not yet connected to the API.
Source code in imouapi/exceptions.py
28 29 30 31 32 33 | |
get_title()
¶
Return the title of the exception which will be then translated.
Source code in imouapi/exceptions.py
31 32 33 | |