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.

  • message

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

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

Structured information about each attempted source.

ConfigFileNotFoundErrorConfigErrorbuiltins.Exceptionbuiltins.FileNotFoundError