pkgcore.config.errors module¶
Exceptions raised by the config code.
- exception pkgcore.config.errors.CollapseInheritOnly(message)[source]¶
Bases:
ConfigurationErrorAttempt was made to collapse an uncollapsable section.
Separate exception because pconfig catches it separately.
- exception pkgcore.config.errors.ComplexInstantiationError(message=None, exception=None, callable_obj=None, pargs=None, kwargs=None)[source]¶
Bases:
ConfigurationErrorException occurred during instantiation.
- Variables:
callable – callable object which failed during instantiation.
pargs – positional args passed to callable.
kwargs – keyword args passed to callable.
exc – original exception object or None.
A well-behaved configurable callable should raise this exception if instantiation failed, providing one or both of message and exception. The other fields will be filled in by central.
If the callable raises something else central will wrap it in this, but that will lose the traceback.
- exception pkgcore.config.errors.ConfigurationError(message)[source]¶
Bases:
ConfigErrorFatal error in parsing a config section.
- Variables:
stack – messages describing where this ConfigurationError originated. configuration-related code catching ConfigurationError that wants to raise its own ConfigurationError should modify (usually append to) the stack and then re-raise the original exception (this makes sure the traceback is preserved).
- exception pkgcore.config.errors.ParsingError(message=None, exception=None)[source]¶
Bases:
ConfigurationError,PkgcoreUserExceptionGeneric file parsing exception.
- exception pkgcore.config.errors.QuoteInterpretationError(string)[source]¶
Bases:
ConfigurationErrorQuoting of a var was screwed up.