Source code for cfg_loader.exceptions

"""
    cfg_loader.exceptions
    ~~~~~~~~~~~~~~~~~~~~~

    Implement configuration loader Exception

    :copyright: Copyright 2017 by ConsenSys France.
    :license: BSD, see :ref:`license` for more details.
"""


[docs]class ConfigLoaderError(Exception): """Base class for all application related errors."""
[docs]class ConfigFileMissingError(ConfigLoaderError): """Error raised when not specifying a config file"""
[docs]class ConfigFileNotFoundError(ConfigLoaderError): """Error raised when an invalid config file path is provided"""
[docs]class LoadingError(ConfigLoaderError): """Error raised when loading the configuration file"""
[docs]class ValidationError(ConfigLoaderError): """Error raised when marshmallow raise a validation error at deserialization"""
[docs]class UnsetRequiredSubstitution(LoadingError): """Error raised when a substitution environment variable is required but unset"""
[docs]class InvalidSubstitution(LoadingError): """Error raised when an invalid substitution is detected"""