2018-02-10 23:24:37 +01:00
|
|
|
# This file implements some custom exceptions that can
|
|
|
|
# be used by all bots.
|
|
|
|
# We avoid adding these exceptions to lib.py, because the
|
|
|
|
# current architecture works by lib.py importing bots, not
|
|
|
|
# the other way around.
|
|
|
|
|
2021-05-28 17:03:46 +08:00
|
|
|
|
2018-02-10 23:24:37 +01:00
|
|
|
class ConfigValidationError(Exception):
|
2021-05-28 17:05:11 +08:00
|
|
|
"""
|
2018-02-10 23:24:37 +01:00
|
|
|
Raise if the config data passed to a bot's validate_config()
|
|
|
|
is invalid (e.g. wrong API key, invalid email, etc.).
|
2021-05-28 17:05:11 +08:00
|
|
|
"""
|