yera.config.exceptions

Configuration exceptions.

Symbols

class ConfigError — A configuration file could not be read, written, or validated.
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 HubConfigError — Raised when hub config resolution or validation fails.
class HubInvalidConfigError — A hub entry failed ``HubConnection`` validation (e.g. bad URL).
class HubNotFoundInConfigError — Named hub is missing from ``yera.toml`` (or has no entry under ``[hubs]``).
class HubNotSpecifiedError — No hub name could be resolved from CLI, project config, or yera.toml.
class ModelInvalidConfigError — A hub entry failed ``HubConnection`` validation (e.g. bad URL).
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.

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.

HubConfigError

Inherits: ConfigError

Raised when hub config resolution or validation fails.

HubInvalidConfigError

Inherits: HubConfigError

A hub entry failed HubConnection validation (e.g. bad URL).

HubNotFoundInConfigError

Inherits: HubConfigError

Named hub is missing from yera.toml (or has no entry under [hubs]).

HubNotSpecifiedError

Inherits: HubConfigError

No hub name could be resolved from CLI, project config, or yera.toml.

ModelInvalidConfigError

A hub entry failed HubConnection validation (e.g. bad URL).

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.