python-zulip-api/zulip_bots/zulip_bots/custom_exceptions.py

12 lines
399 B
Python
Raw Normal View History

# 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.
class ConfigValidationError(Exception):
'''
Raise if the config data passed to a bot's validate_config()
is invalid (e.g. wrong API key, invalid email, etc.).
'''