Source code for ecstask.productavailability.exceptions.configuration_exception

[docs]class ApplicationConfigurationException(Exception): """Base class for configuration exceptions""" pass
[docs]class FlaskConfigurationFileNotFoundError(ApplicationConfigurationException): """Exception raised when the path to the file is wrong or the file is not present. Attributes: message (String): explanation of the error """
[docs] def __init__(self, message='The flask configuration file path is incorrect or the file does not exist'): self.message = message