python_infrastructure_exceptions.configuration

Configuration infrastructure exceptions.

Exceptions

ConfigurationError

Configuration infrastructure error.

Module Contents

exception python_infrastructure_exceptions.configuration.ConfigurationError(message: str, details: str = None, config_key: str = None)

Bases: python_infrastructure_exceptions.base.InfrastructureException

Configuration infrastructure error.

Use for: - Missing environment variables - Invalid configuration values - Configuration file not found - Secret not found - Invalid credentials

Examples:

raise ConfigurationError(“Missing DATABASE_URL environment variable”) raise ConfigurationError(“Invalid log level”, details=”Expected: DEBUG, INFO, WARNING, ERROR”) raise ConfigurationError(“Config file not found”, details=”config.yaml not found in /etc/app/”)

config_key = None