-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror_statements.py
70 lines (48 loc) · 1.7 KB
/
error_statements.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
""" A simple module to prvide solutions to errors raised during execution """
NO_USB = """It's likely that the tracker is not yet connected!!
************************************
Did you forget to connect tracker ??
Check the connections once.
************************************
---------------- FULL ERROR ----------------
"""
SERIAL_ERR = """It's likely that you removed the tracker and reconnected it!!
************************************
Disconnect the tracker and reconnect
it and start the script again.
Kindly avoid removing the tracker
when at use.
************************************
---------------- FULL ERROR ----------------
"""
VAL_ERR = """It's likely a threshold based error!!
************************************
Keep turn On and Off thresholds
between 5 to 100
Make sure there is difference of
20% between Turn Off and Turn on
Threshold.
************************************
---------------- FULL ERROR ----------------
"""
PORT_ERR = """It's likely you entered incorrect port!!
************************************
Restart the program, remove any other
USB devices or write the COM Num
correctly. Its possilbe that if you
enter other COM Num, code might run
but won't be able to control charge.
So, we recommend removing all devices
except for the tracker to make the
process easy.
************************************
---------------- FULL ERROR ----------------
"""
UNKNOWN_ERR = """We don't know it yet, if you know what happened, kindly share wit us.
***************************************
Email the steps to reproduce the error
and report it to:
***************************************
---------------- FULL ERROR ----------------
"""