-
Notifications
You must be signed in to change notification settings - Fork 1
/
Exceptions.py
35 lines (25 loc) · 1.14 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
class ArgumentWasAddedBefore(Exception):
def __init__(self):
super().__init__("add_argument: Argument was added before.")
class ArgumentWasNotAddedBefore(Exception):
def __init__(self):
super().__init__("del_argument: Argument was NOT added before.")
class AttackWasNotRegistered(Exception):
def __init__(self):
super().__init__("del_attack: Attack was not registered.")
# if attack is added twice, ignore the second one
class WitnessCallBeforeCredSkeptCall(Exception):
def __init__(self):
super().__init__("extract_witness: Call before solve_cred or solve_skept was called.")
class WrongArgumentationSet(Exception):
def __init__(self):
super().__init__("init_solver: sigma has to be CO/ST/PR")
class LibraryWasRunAsMain(Exception):
def __init__(self):
super().__init__("Library was run as main.")
class ParseError(Exception):
def __init__(self):
super().__init__("Parser: There was an unexpected parse error.")
class AttackWithNotRegisteredArguments(Exception):
def __init__(self):
super().__init__("add_attack: Adding attack with unregistered Argument.")