fastoad.module_management.exceptions module
Exceptions for module_management package.
- exception fastoad.module_management.exceptions.FastBundleLoaderDuplicateFactoryError(factory_name: str)[source]
Bases:
FastErrorRaised 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:
FastErrorRaised when trying to instantiate a component from an unknown factory.
- Parameters:
factory_name
Bases:
FastErrorRaised when trying to instantiate a component from a known factory but which is unavailable for instantiation. Can be used for a component that requires a package which is not installed by default (either because it is an extra dependency or a private package) or for a component that needs credentials to access private database.
- exception fastoad.module_management.exceptions.FastBadSystemOptionError(identifier, option_names)[source]
Bases:
FastErrorRaised 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:
FastErrorRaised 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:
FastErrorRaised 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:
FastErrorRaised 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:
FastErrorRaised 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:
FastErrorRaised when no installed package with FAST-OAD plugin is available.
- exception fastoad.module_management.exceptions.FastUnknownDistPluginError(dist_name)[source]
Bases:
FastErrorRaised when a distribution name is not found among distribution with FAST-OAD plugins.
- exception fastoad.module_management.exceptions.FastSeveralDistPluginsError[source]
Bases:
FastErrorRaised when no distribution name has been specified but several distribution with FAST-OAD plugins are available.
- exception fastoad.module_management.exceptions.FastNoAvailableConfigurationFileError[source]
Bases:
FastErrorRaised when a configuration file is asked, but none is available in plugins.
- exception fastoad.module_management.exceptions.FastUnknownConfigurationFileError(configuration_file, dist_name)[source]
Bases:
FastErrorRaised when a configuration file is not found for named distribution.
- exception fastoad.module_management.exceptions.FastSeveralConfigurationFilesError(dist_name)[source]
Bases:
FastErrorRaised when no configuration file has been specified but several configuration files are provided with the distribution.
- exception fastoad.module_management.exceptions.FastNoAvailableSourceDataFileError[source]
Bases:
FastErrorRaised when a source data file is requested, but none is available in plugins.