cpdbench.exception.ConfigurationException

 1class ConfigurationException(Exception):
 2    """General error for inconsistencies and errors in the given config file."""
 3    exc_message = "Error in configuration file: Invalid value for {0}, using default value."
 4
 5    def __init__(self, config_variable):
 6        super().__init__(self.exc_message.format(config_variable))
 7
 8
 9class ConfigurationFileNotFoundException(Exception):
10    """Error if a given config file path does not exist"""
11    exc_message = "Given config file path [{0}] does not exist. Using default config values."
12
13    def __init__(self, config_variable):
14        super().__init__(self.exc_message.format(config_variable))
class ConfigurationException(builtins.Exception):
2class ConfigurationException(Exception):
3    """General error for inconsistencies and errors in the given config file."""
4    exc_message = "Error in configuration file: Invalid value for {0}, using default value."
5
6    def __init__(self, config_variable):
7        super().__init__(self.exc_message.format(config_variable))

General error for inconsistencies and errors in the given config file.

ConfigurationException(config_variable)
6    def __init__(self, config_variable):
7        super().__init__(self.exc_message.format(config_variable))
exc_message = 'Error in configuration file: Invalid value for {0}, using default value.'
Inherited Members
builtins.BaseException
with_traceback
args
class ConfigurationFileNotFoundException(builtins.Exception):
10class ConfigurationFileNotFoundException(Exception):
11    """Error if a given config file path does not exist"""
12    exc_message = "Given config file path [{0}] does not exist. Using default config values."
13
14    def __init__(self, config_variable):
15        super().__init__(self.exc_message.format(config_variable))

Error if a given config file path does not exist

ConfigurationFileNotFoundException(config_variable)
14    def __init__(self, config_variable):
15        super().__init__(self.exc_message.format(config_variable))
exc_message = 'Given config file path [{0}] does not exist. Using default config values.'
Inherited Members
builtins.BaseException
with_traceback
args