Skip to content

pillar.exception 🔗

MissingDependencyError 🔗

MissingDependencyError(
    feature: str,
    required_package: str,
    package_name: str,
    optional_dependency: str,
)

Bases: Exception

Exception for when an optional dependency is required but not installed

Parameters:

Name Type Description Default
feature str

Name of the feature. This could be a word, phrase, or longer sentence.

required
required_package str

Name of the package we were trying to import. Doesn't need to be the actual import name, could be it's colloquial or PyPI name.

required
package_name str

Name of our package. Used to generate install instructions.

required
optional_dependency str

Name of the optional dependency that should be installed. Used to generate install instructions.

required

PillarException 🔗

PillarException(*args, **kwargs)

Bases: Exception

Base class for all Pillar specific exceptions

PillarMissingDependencyError 🔗

PillarMissingDependencyError(
    feature: str,
    required_package: str,
    optional_dependency: str,
)

Bases: PillarException, MissingDependencyError

Pillar is missing a required package.

As per MissingDependencyError with package_name set to "pillar"