Skip to content

ConfigFileNotFoundError

relationalai.config.errors.exceptions
ConfigFileNotFoundError(
message: str, attempted_sources: list[AttemptedSource] | None = None
)

Raised when no configuration file can be found.

This error is typically raised by create_config when it cannot discover a config file in any supported location.

Parameters

  • message

    (str) - Human-readable error message.
  • attempted_sources

    (list[AttemptedSource], default: None) - Sources that were checked and why each one failed.

Attributes

.attempted_sources

ConfigFileNotFoundError.attempted_sources: list[AttemptedSource]

Structured information about each attempted source.

Inheritance Hierarchy

ConfigFileNotFoundErrorConfigErrorbuiltins.Exceptionbuiltins.FileNotFoundError