-
Notifications
You must be signed in to change notification settings - Fork 0
/
exceptions.py
43 lines (30 loc) · 908 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
#
# Project : cloud-web-frontend
# Timestamp : 19-03-2018 19:27
# Author : Manuel Bernal Llinares
# ---
# © 2017 Manuel Bernal Llinares <[email protected]>
# All rights reserved.
#
"""
Application wide exceptions
"""
class AppException(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class AppConfigException(AppException):
def __init__(self, value):
super().__init__(value)
class ConfigManagerException(Exception):
def __init__(self, value):
Exception.__init__(self)
self.value = value
def __str__(self):
return repr(self.value)
class ToolBoxException(AppException):
def __init__(self, value):
super().__init__(value)
if __name__ == '__main__':
print("ERROR: This script is part of a application and it is not meant to be run in stand alone mode")