yera.config.exceptions

Configuration exceptions.

Symbols

class ConfigError — A configuration file could not be read, written, or validated.
class ConfigReplacementError — The global configuration cannot be replaced in its current state.
class ConnectionConfigError — Raised when connection resolution or validation fails.
class ConnectionNotFoundInConfigError — Named connection is missing from the provider's connections.
class ConnectionNotSpecifiedError — The active Yera profile does not specify a connection for this provider.
class MCPConfigError — Raised when MCP server configuration or resolution fails.
class MCPInvalidConfigError — An MCP server declaration failed validation.
class MCPServerNotFoundInConfigError — An MCP connection selected by a profile is not configured.
class ModelInvalidConfigError — A model entry has invalid config.
class ModelNotFoundInConfigError — Named model is missing from yera.toml.
class ModelsConfigError — Raised when model config resolution or validation fails.
class ModelTypeNotFoundInConfigError — No default model is configured for a given type.
class ProfileConfigError — Raised when Yera profile config resolution or validation fails.
class ProfileInvalidConfigError — The profiles section failed Pydantic validation.
class ProfileNotFoundInConfigError — Named Yera profile is missing from ``yera.toml`` ``[profiles]``.
class ProfileNotSpecifiedError — No active Yera profile could be resolved.
class ProviderInvalidConfigError — A provider entry failed validation.
class ProviderNotFoundInConfigError — Named provider is missing from ``yera.toml``.
class ProvidersConfigError — Raised when provider config resolution or validation fails.
class ProvidersNotConfigured — The whole providers section is missing from yera.toml.
class PyprojectTomlNotFoundError — No ``pyproject.toml`` could be resolved for a project-scoped write.
class SettingsError — Raised when settings validation fails fatally.

ConfigError

Inherits: YeraError

A configuration file could not be read, written, or validated.

ConfigReplacementError

Inherits: ConfigError

The global configuration cannot be replaced in its current state.

Raised when replacement is requested for configuration that is missing or already valid.

ConnectionConfigError

Inherits: ConfigError

Raised when connection resolution or validation fails.

ConnectionNotFoundInConfigError

Named connection is missing from the provider's connections.

ConnectionNotSpecifiedError

The 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.

MCPConfigError

Inherits: ConfigError

Raised when MCP server configuration or resolution fails.

MCPInvalidConfigError

Inherits: MCPConfigError

An MCP server declaration failed validation.

MCPServerNotFoundInConfigError

Inherits: MCPConfigError

An MCP connection selected by a profile is not configured.

ModelInvalidConfigError

A model entry has invalid config.

ModelNotFoundInConfigError

Named model is missing from yera.toml.

ModelsConfigError

Inherits: ConfigError

Raised when model config resolution or validation fails.

ModelTypeNotFoundInConfigError

No default model is configured for a given type.

ProfileConfigError

Inherits: ConfigError

Raised when Yera profile config resolution or validation fails.

ProfileInvalidConfigError

The profiles section failed Pydantic validation.

ProfileNotFoundInConfigError

Named Yera profile is missing from yera.toml [profiles].

ProfileNotSpecifiedError

No active Yera profile could be resolved.

Raised when none of CLI flag, pyproject.toml, or yera.toml default yields a profile name.

ProviderInvalidConfigError

A provider entry failed validation.

ProviderNotFoundInConfigError

Named provider is missing from yera.toml.

ProvidersConfigError

Inherits: ConfigError

Raised when provider config resolution or validation fails.

ProvidersNotConfigured

The whole providers section is missing from yera.toml.

PyprojectTomlNotFoundError

Inherits: ConfigError

No 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.

SettingsError

Inherits: ConfigError

Raised when settings validation fails fatally.