blob: 82e2432c7bc339066cba61847d1b185010e29642 [file] [log] [blame]
Alex Savatieievd48994d2018-12-13 12:13:00 +01001from exceptions import Exception
2
3
4class CiCheckerBaseExceptions(Exception):
5 pass
6
7
8class CheckerException(CiCheckerBaseExceptions):
9 def __init__(self, message, *args, **kwargs):
10 super(CheckerException, self).__init__(message, *args, **kwargs)
11 # get the trace
12 # TODO: get and log traceback
13
14 # prettify message
15 self.message = "CheckerException: {}".format(message)
16
17
18class ConfigException(CheckerException):
19 def __init__(self, message, *args, **kwargs):
20 super(ConfigException, self).__init__(message, *args, **kwargs)
21 self.message = "Configuration error: {}".format(message)