blob: 93edfffefd9bdd2d383ed397bf4f53ad466f9614 [file] [log] [blame]
savex4448e132018-04-25 15:51:14 +02001from exceptions import Exception
2
3
4class Cee8BaseExceptions(Exception):
5 pass
6
7
8class Cee8Exception(Cee8BaseExceptions):
9 def __init__(self, message, *args, **kwargs):
10 super(Cee8Exception, self).__init__(message, *args, **kwargs)
11 # get the trace
12 # TODO: get and log traceback
13
14 # prettify message
15 self.message = "CEE8Exception: {}".format(message)
16
17
18class ConfigException(Cee8Exception):
19 def __init__(self, message, *args, **kwargs):
20 super(ConfigException, self).__init__(message, *args, **kwargs)
21 self.message = "Configuration error: {}".format(message)