Source code for config_yourself.exceptions

[docs]class ConfigException(Exception): """The base Config Exception""" pass
[docs]class DecryptError(ConfigException): """A value could not be decrypted""" def __init__(self, full_path, original=None): msg = "Could not decrypt path {}".format(".".join(full_path)) super(DecryptError, self).__init__(msg)
[docs]class InvalidConfig(ConfigException): """A supplied config file was not valid""" def __init__( self, original=None, message="crypto property is not an object of key and region.", ): if original: message = "{}\n{}".format(message, original) self.message = message super(InvalidConfig, self).__init__(message)