python_infrastructure_exceptions.configuration¶
Configuration infrastructure exceptions.
Exceptions¶
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.InfrastructureExceptionConfiguration 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¶