blob: 82e2432c7bc339066cba61847d1b185010e29642 [file] [log] [blame]
from exceptions import Exception
class CiCheckerBaseExceptions(Exception):
pass
class CheckerException(CiCheckerBaseExceptions):
def __init__(self, message, *args, **kwargs):
super(CheckerException, self).__init__(message, *args, **kwargs)
# get the trace
# TODO: get and log traceback
# prettify message
self.message = "CheckerException: {}".format(message)
class ConfigException(CheckerException):
def __init__(self, message, *args, **kwargs):
super(ConfigException, self).__init__(message, *args, **kwargs)
self.message = "Configuration error: {}".format(message)