-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomerrs.py
90 lines (64 loc) · 1.41 KB
/
customerrs.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Define Custom Errors
class InvalidAction(BaseException):
"""
Error if an action not in ACTIONS constant is passed.
"""
pass
class InvalidLoop(BaseException):
"""
Error if a control loop that the reactor does not have is passed.
"""
pass
class InvalidValue(BaseException):
"""
Error if control parameters passed are not in the expected format/data type
"""
pass
class MissingKey(BaseException):
"""
No 'secretkey.txt' file in the directory
"""
pass
class CannotReachController(BaseException):
"""
Was unable to reach controller
"""
pass
class UnfoundStatus(BaseException):
"""
Could not find status of a particular loop
"""
pass
class IncorrectClusterOrder(BaseException):
"""
Was unable to reach controller
"""
pass
class CannotReachControllerWarn(Warning):
"""
Was unable to reach controller
"""
pass
class CannotReachReactor(BaseException):
"""
Was unable to reach reactor
"""
pass
class CannotReachReactorWarn(Warning):
"""
Was unable to reach reactor
"""
pass
class DataNotCollected(Warning):
"""
Was unable to reach controller
"""
pass
class NonBoolean(Warning):
"""
A non boolean value was written to a boolean actuator
"""
class NotProperlyFormatted(Warning):
"""
This is not properly formatted on cRIO Side
"""