blob: bc7cefea13bc2bb8c5819c96eacbf0cdf62e91c9 [file] [log] [blame]
from exceptions import Exception
class CheckerBaseExceptions(Exception):
pass
class CheckerException(CheckerBaseExceptions):
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)