yera.config.exceptions
Configuration exceptions.
Symbols
ConfigError
YeraErrorConfigReplacementError, ConnectionConfigError, MCPConfigError, ModelsConfigError, ProfileConfigError, ProvidersConfigError, PyprojectTomlNotFoundError, SettingsErrorA configuration file could not be read, written, or validated.
ConfigReplacementError
ConfigErrorThe global configuration cannot be replaced in its current state.
Raised when replacement is requested for configuration that is missing or already valid.
ConnectionNotFoundInConfigError
ConnectionConfigErrorNamed connection is missing from the provider's connections.
ConnectionNotSpecifiedError
ConnectionConfigErrorThe active Yera profile does not specify a connection for this provider.
Raised when a provider type is needed at runtime but the active Yera profile's provider map does not include an entry for it.
MCPServerNotFoundInConfigError
MCPConfigErrorAn MCP connection selected by a profile is not configured.
ModelTypeNotFoundInConfigError
ModelsConfigErrorNo default model is configured for a given type.
ProfileConfigError
ConfigErrorRaised when Yera profile config resolution or validation fails.
ProfileInvalidConfigError
ProfileConfigErrorThe profiles section failed Pydantic validation.
ProfileNotFoundInConfigError
ProfileConfigErrorNamed Yera profile is missing from yera.toml [profiles].
ProfileNotSpecifiedError
ProfileConfigErrorNo active Yera profile could be resolved.
Raised when none of CLI flag, pyproject.toml, or yera.toml default yields a profile name.
ProviderNotFoundInConfigError
ProvidersConfigErrorNamed provider is missing from yera.toml.
ProvidersConfigError
ConfigErrorRaised when provider config resolution or validation fails.
ProvidersNotConfigured
ProvidersConfigErrorThe whole providers section is missing from yera.toml.
PyprojectTomlNotFoundError
ConfigErrorNo pyproject.toml could be resolved for a project-scoped write.
When message is omitted, default user-facing copy suggests creating
pyproject.toml or writing to yera.toml instead.