Errors
Pydantic-specific errors.
A mixin class for common functionality shared by all Pydantic-specific errors.
A message describing the error.
An optional error code from PydanticErrorCodes enum.
Bases: PydanticErrorMixin, TypeError
An error raised due to incorrect use of Pydantic.
Bases: PydanticErrorMixin, NameError
A subclass of NameError raised when handling undefined annotations during CoreSchema generation.
Name of the error.
Description of the error.
@classmethod
def from_name_error(cls, name_error: NameError) -> Self
Convert a NameError to a PydanticUndefinedAnnotation error.
Self — Converted PydanticUndefinedAnnotation error.
name_error : NameError
NameError to be converted.
Bases: PydanticErrorMixin, ImportError
An error raised when an import fails due to module changes between V1 and V2.
Description of the error.
Bases: PydanticUserError
An error raised during failures to generate a CoreSchema for some type.
Description of the error.
Bases: PydanticUserError
An error raised during failures to generate a JSON schema for some CoreSchema.
Description of the error.
Bases: PydanticUserError
An error raised if a forbidden type qualifier is found in a type annotation.