matrix-alertbot/my_project_name/errors.py

10 lines
260 B
Python
Raw Normal View History

2019-09-25 14:26:29 +02:00
class ConfigError(RuntimeError):
"""An error encountered during reading the config file
Args:
msg (str): The message displayed to the user on error
"""
2020-08-09 15:02:07 -07:00
2019-09-25 14:26:29 +02:00
def __init__(self, msg):
2020-08-09 15:02:07 -07:00
super(ConfigError, self).__init__("%s" % (msg,))