-
Notifications
You must be signed in to change notification settings - Fork 4
/
exceptions.py
56 lines (30 loc) · 973 Bytes
/
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
class FlipJumpException(Exception):
pass
class FlipJumpParsingException(FlipJumpException):
pass
class FlipJumpPreprocessorException(FlipJumpException):
pass
class FlipJumpExprException(FlipJumpException):
pass
class FlipJumpAssemblerException(FlipJumpException):
pass
class FlipJumpReadFjmException(FlipJumpException):
pass
class FlipJumpWriteFjmException(FlipJumpException):
pass
class FlipJumpRuntimeException(FlipJumpException):
pass
class FlipJumpRuntimeMemoryException(FlipJumpRuntimeException):
def __init__(self, message: str, memory_address: int):
super().__init__(message)
self.memory_address = memory_address
class FlipJumpMissingImportException(FlipJumpException):
pass
class IODeviceException(IOError, FlipJumpException):
pass
class BrokenIOUsed(IODeviceException):
pass
class IOReadOnEOF(IODeviceException):
pass
class IncompleteOutput(IODeviceException):
pass