Pydantic · Error
PydanticUserError
PydanticUserError and related classes report problems in Pydantic code. They provide readable messages and, for some errors, an error code that identifies the problem.
Last updated
Syntax
class PydanticUserError(PydanticErrorMixin, RuntimeError): ...In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
PydanticErrorMixinPydanticUndefinedAnnotationPydanticImportErrorPydanticSchemaGenerationErrorPydanticInvalidForJsonSchemaPydanticForbiddenQualifierPydanticUserError