/
error.py
32 lines (28 loc) · 858 Bytes
/
error.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
class Error:
def __init__(self):
pass
def no_verb(self):
print(
"------\n"
"[ERROR]:"
"Requested verb is not in dictionary!\n"
"Try to add new verbs following the README.md file instructions\n"
)
def no_file(self, param):
print(
"------\n"
"[ERROR]: "
"Seems a motion is not defined for parameter: \"" + param +
"\"! Check the dictionary and ./motions directory!\n"
)
def bad_definition(self):
print(
"[ERROR]: "
"Bad definition of requested verb in dictionary!\n"
)
def bad_time_definition(self):
print(
"[ERROR]: "
"Bad TIME definition of requested verb in dictionary!\n"
"Check \"speed\" parameter\n"
)