-
Notifications
You must be signed in to change notification settings - Fork 1
/
Exceptions.py
58 lines (36 loc) · 1.13 KB
/
Exceptions.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
class LedIndexError(Exception):
"""LED List index out of range or not found"""
pass
class InvalidIndexType(Exception):
"""LED list index is of invalid type. Use pos tuple or index number"""
pass
class LedNotFound(Exception):
"""LED List index not found for given position"""
pass
class TargetNotInLine(Exception):
"""Target LED is not in direct line with previous"""
pass
class NothingToDraw(Exception):
"""Cannot draw nothing"""
pass
class LedAlreadyPresent(Exception):
"""Tried to insert LED over existing one"""
pass
class LedLayoutEmpty(Exception):
"""LED Layout is currently empty"""
pass
class SaveDirNotSet(Exception):
"""Save button is enables but save dir is not set"""
pass
class ConflictingSizes(Exception):
"""Size of Screen conflicts with size of an attribute"""
pass
class ConnectionInterrupted(Exception):
"""Connection with Serial or TCP Client has been interrupdet"""
pass
class Timeout(Exception):
"""Connection timed out"""
pass
class ConnectionNotACKed(Exception):
"""Server responded with wrong ACK signal"""
pass