Skip to content

FormValidationError

Base classes

Name Children Inherits
ValueError
builtins
Inappropriate argument value (of correct type).

⋔ Inheritance diagram

graph TD
  1131186607["target.FormValidationError"]
  2098401309["builtins.ValueError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  2098401309 --> 1131186607
  1615621424 --> 2098401309
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: ValueError

The finished value doesn't validate.

Source code in src/promptantic/form/target.py
class FormValidationError(ValueError):
    """The finished value doesn't validate."""

    def __init__(self, issues: list[Issue]) -> None:
        self.issues = issues
        super().__init__(
            "; ".join(f"{'/'.join(map(str, i.path)) or '<root>'}: {i.message}" for i in issues)
        )

:fa-brands-github: Show source on GitHub