forked from SeattleTestbed/affix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaffix_exceptions.r2py
56 lines (43 loc) · 1.04 KB
/
affix_exceptions.r2py
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
"""
<Purpose>
This file contains all the exceptions that can be raised
by affixs or affix related libraries/modules.
"""
class AffixError (Exception):
"""
The base affix exception. All other exceptions
are derived from here.
"""
pass
class AffixStackError (AffixError):
"""
This error will usually be raised if we are unable
to manipulate the affix stack. For example if we
are trying to do a pop() or peek() on an empty stack.
"""
pass
class AffixConfigError (AffixError):
"""
This error means that the global context does
not match the expected context for a affix.
"""
pass
class AffixArgumentError (AffixError):
"""
This indicates that an argument was provided
that does not match the expected argument for
a function.
"""
pass
class AffixNotFoundError (AffixError):
"""
This error would be raised if a affix name
is provided that is not found.
"""
pass
class AffixInternalError (AffixError):
"""
This error is raised if an error occurs while
configuring the affixs.
"""
pass