Skip to content

ConfigFieldTypeError

relationalai.config.errors.exceptions
ConfigFieldTypeError(
field_path: list[str],
expected_type: str,
actual_value: Any,
context: ConfigErrorContext,
)

Raised when a configuration field has an unexpected type.

This error is raised during config validation when a field value does not match the required type.

  • field_path

    (list[str]) - Path segments to the invalid field.
  • expected_type

    (str) - Expected type description (for example "type_error.integer").
  • actual_value

    (Any) - The value that was provided.
  • context

    (:class:~relationalai.config.errors.ConfigErrorContext) - Where the invalid config came from (source, file, profile, connection).
ConfigFieldTypeError.field_path: list[str]

Path segments to the invalid field.

ConfigFieldTypeError.expected_type: str

Expected type description.

ConfigFieldTypeError.actual_value: Any

The value that was provided.

ConfigFieldTypeErrorConfigValidationErrorConfigErrorbuiltins.Exceptionbuiltins.ValueError