Skip to content

ValidationError

Base classes

Name Children Inherits
PromptanticError
promptantic.exceptions
Base exception for promptantic.

⋔ Inheritance diagram

graph TD
  3553150588["exceptions.ValidationError"]
  930516429["exceptions.PromptanticError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  930516429 --> 3553150588
  1615621424 --> 930516429
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: PromptanticError

Raised when validation fails.

Source code in src/promptantic/exceptions.py
class ValidationError(PromptanticError):
    """Raised when validation fails."""

:fa-brands-github: Show source on GitHub