2021-01-10 04:30:07 +01:00
|
|
|
# This file holds custom error types that you can define for your application.
|
|
|
|
|
|
|
|
|
2019-09-25 14:26:29 +02:00
|
|
|
class ConfigError(RuntimeError):
|
2021-01-10 04:33:59 +01:00
|
|
|
"""An error encountered during reading the config file.
|
2019-09-25 14:26:29 +02:00
|
|
|
|
|
|
|
Args:
|
2021-01-10 04:33:59 +01:00
|
|
|
msg: The message displayed to the user on error.
|
2019-09-25 14:26:29 +02:00
|
|
|
"""
|
2020-08-10 00:02:07 +02:00
|
|
|
|
2021-01-10 04:30:07 +01:00
|
|
|
def __init__(self, msg: str):
|
2020-08-10 00:02:07 +02:00
|
|
|
super(ConfigError, self).__init__("%s" % (msg,))
|