fastoad.module_management.exceptions module
Exceptions for module_management package.
- exception fastoad.module_management.exceptions.FastBundleLoaderDuplicateFactoryError(factory_name: str)[source]
Bases:
FastError
Raised when trying to register a factory with an already used name.
- Parameters:
factory_name –
- exception fastoad.module_management.exceptions.FastBundleLoaderUnknownFactoryNameError(factory_name: str)[source]
Bases:
FastError
Raised when trying to instantiate a component from an unknown factory.
- Parameters:
factory_name –
- exception fastoad.module_management.exceptions.FastBadSystemOptionError(identifier, option_names)[source]
Bases:
FastError
Raised when some option name is not conform to OpenMDAO system definition.
- Parameters:
identifier – system identifier
option_names – incorrect option names
- exception fastoad.module_management.exceptions.FastIncompatibleServiceClassError(registered_class: type, service_id: str, base_class: type)[source]
Bases:
FastError
Raised when trying to register as service a class that does not implement the specified interface.
- Parameters:
registered_class –
service_id –
base_class – the unmatched interface
- exception fastoad.module_management.exceptions.FastNoSubmodelFoundError(service_id: str)[source]
Bases:
FastError
Raised when a submodel is required, but none has been declared.
- Parameters:
service_id –
- exception fastoad.module_management.exceptions.FastTooManySubmodelsError(service_id: str, candidates: Sequence[str])[source]
Bases:
FastError
Raised when several candidates are declared for a required submodel, but none has been selected.
- Parameters:
service_id –
candidates –
- exception fastoad.module_management.exceptions.FastUnknownSubmodelError(service_id: str, submodel_id: str, submodel_ids: List[str])[source]
Bases:
FastError
Raised when a submodel identifier is unknown for given required service.
- Parameters:
service_id –
submodel_id –
submodel_ids –
- exception fastoad.module_management.exceptions.FastNoDistPluginError[source]
Bases:
FastError
Raised when no installed package with FAST-OAD plugin is available.
- exception fastoad.module_management.exceptions.FastUnknownDistPluginError(dist_name)[source]
Bases:
FastError
Raised when a distribution name is not found among distribution with FAST-OAD plugins.
- exception fastoad.module_management.exceptions.FastSeveralDistPluginsError[source]
Bases:
FastError
Raised when no distribution name has been specified but several distribution with FAST-OAD plugins are available.
- exception fastoad.module_management.exceptions.FastNoAvailableConfigurationFileError[source]
Bases:
FastError
Raised when a configuration file is asked, but none is available in plugins.
- exception fastoad.module_management.exceptions.FastUnknownConfigurationFileError(configuration_file, dist_name)[source]
Bases:
FastError
Raised when a configuration file is not found for named distribution.
- exception fastoad.module_management.exceptions.FastSeveralConfigurationFilesError(dist_name)[source]
Bases:
FastError
Raised when no configuration file has been specified but several configuration files are provided with the distribution.
- exception fastoad.module_management.exceptions.FastNoAvailableSourceDataFileError[source]
Bases:
FastError
Raised when a source data file is requested, but none is available in plugins.