|
2 | 2 |
|
3 | 3 |
|
4 | 4 | class PlugwiseException(Exception): |
5 | | - """Base error class for this Plugwise library""" |
| 5 | + """Base error class for this Plugwise library.""" |
6 | 6 |
|
7 | 7 |
|
8 | | -### Stick exceptions ### |
| 8 | +# --- Stick exceptions --- |
9 | 9 |
|
10 | 10 |
|
11 | 11 | class PortError(PlugwiseException): |
12 | | - """Connection to USBstick failed""" |
| 12 | + """Connection to USBstick failed.""" |
13 | 13 |
|
14 | 14 |
|
15 | 15 | class StickInitError(PlugwiseException): |
16 | | - """Initialization of USBstick failed""" |
| 16 | + """Initialization of USBstick failed.""" |
17 | 17 |
|
18 | 18 |
|
19 | 19 | class NetworkDown(PlugwiseException): |
20 | | - """Zigbee network not online""" |
| 20 | + """Zigbee network not online.""" |
21 | 21 |
|
22 | 22 |
|
23 | 23 | class CirclePlusError(PlugwiseException): |
24 | | - """Connection to Circle+ node failed""" |
| 24 | + """Connection to Circle+ node failed.""" |
25 | 25 |
|
26 | 26 |
|
27 | 27 | class InvalidMessageLength(PlugwiseException): |
28 | | - """Invalid message length""" |
| 28 | + """Invalid message length.""" |
29 | 29 |
|
30 | 30 |
|
31 | 31 | class InvalidMessageHeader(PlugwiseException): |
32 | | - """Invalid message header""" |
| 32 | + """Invalid message header.""" |
33 | 33 |
|
34 | 34 |
|
35 | 35 | class InvalidMessageFooter(PlugwiseException): |
36 | | - """Invalid message footer""" |
| 36 | + """Invalid message footer.""" |
37 | 37 |
|
38 | 38 |
|
39 | 39 | class InvalidMessageChecksum(PlugwiseException): |
40 | | - """Invalid data checksum""" |
| 40 | + """Invalid data checksum.""" |
41 | 41 |
|
42 | 42 |
|
43 | 43 | class TimeoutException(PlugwiseException): |
44 | | - """Timeout expired while waiting for response from node""" |
| 44 | + """Timeout expired while waiting for response from node.""" |
45 | 45 |
|
46 | 46 |
|
47 | | -### Smile exceptions ### |
| 47 | +# --- Smile exceptions --- |
48 | 48 |
|
49 | 49 |
|
50 | 50 | class ConnectionFailedError(PlugwiseException): |
|
0 commit comments