Skip to content

exceptions

Class info

Classes

Name Children Inherits
NoHandlerError
promptantic.exceptions
Raised when no handler is found for a type.
    PromptanticError
    promptantic.exceptions
    Base exception for promptantic.
    TypeHandlerError
    promptantic.exceptions
    Raised when a type handler fails.
    ValidationError
    promptantic.exceptions
    Raised when validation fails.

      🛈 DocStrings

      Exceptions for promptantic.

      NoHandlerError

      Bases: TypeHandlerError

      Raised when no handler is found for a type.

      Source code in src/promptantic/exceptions.py
      class NoHandlerError(TypeHandlerError):
          """Raised when no handler is found for a type."""
      

      PromptanticError

      Bases: Exception

      Base exception for promptantic.

      Source code in src/promptantic/exceptions.py
      class PromptanticError(Exception):
          """Base exception for promptantic."""
      

      TypeHandlerError

      Bases: PromptanticError

      Raised when a type handler fails.

      Source code in src/promptantic/exceptions.py
      class TypeHandlerError(PromptanticError):
          """Raised when a type handler fails."""
      

      ValidationError

      Bases: PromptanticError

      Raised when validation fails.

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