Exceptions

exception oslo_config.cfg.Error(msg=None)

Base class for cfg exceptions.

exception oslo_config.cfg.ArgsAlreadyParsedError(msg=None)

Raised if a CLI opt is registered after parsing.

exception oslo_config.cfg.NoSuchOptError(opt_name, group=None)

Raised if an opt which doesn’t exist is referenced.

exception oslo_config.cfg.NoSuchGroupError(group_name)

Raised if a group which doesn’t exist is referenced.

exception oslo_config.cfg.DuplicateOptError(opt_name)

Raised if multiple opts with the same name are registered.

exception oslo_config.cfg.RequiredOptError(opt_name, group=None)

Raised if an option is required but no value is supplied by the user.

exception oslo_config.cfg.TemplateSubstitutionError(msg=None)

Raised if an error occurs substituting a variable in an opt value.

exception oslo_config.cfg.ConfigFilesNotFoundError(config_files)

Raised if one or more config files are not found.

exception oslo_config.cfg.ConfigFileParseError(config_file, msg)

Raised if there is an error parsing a config file.

exception oslo_config.cfg.ConfigFileValueError(msg=None)

Raised if a config file value does not match its opt type.

Previous topic

File Parsing

Next topic

Choosing group names for configuration options

Project Source

This Page