-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
67 lines (59 loc) · 1.25 KB
/
exceptions.py
File metadata and controls
67 lines (59 loc) · 1.25 KB
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
59
60
61
62
63
64
65
66
67
class MyError(Exception):
"""
My base exception to module
"""
pass
class ConfigFileError(MyError):
"""
error raise when config file have some error
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg
class PathExistenceError(MyError):
"""
error raise when file not existed
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg
class WrongPathError(MyError):
"""
error of wrong path error
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg
class WrongAnalizerNameError(MyError):
"""
error of wrong analizer in conf file
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg
class ExecError(MyError):
"""
error of programm execution
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg
class WorkDirError(MyError):
"""
error of programm execution
"""
def __init__(self, msg):
"""
init error class
"""
self.message = msg