Skip to content

AttemptedSource

relationalai.config.errors.exceptions
AttemptedSource(source_name: str, error_message: str, file_path: str | None = None)

Information about a config source that was tried but failed.

Attributes

.source_name

AttemptedSource.source_name: str

Name of the source (e.g., “RAIConfig (raiconfig.yaml)”)

.error_message

AttemptedSource.error_message: str

Why it failed (e.g., “File not found”, “YAML parsing error”)

.file_path

AttemptedSource.file_path: str | None

Path to the file that was tried

Possible Members:

  • str
  • None

Used By

 config > errors > exceptions
└──  ConfigFileNotFoundError