Skip to main content

ErrorDetails

This class defines a structured representation of validation errors, providing programmatic identifiers and human-readable messages. It captures the specific location of the error within the schema, the original input data that caused the failure, and optional context or documentation URLs for further resolution.

Attributes

AttributeTypeDescription
typestrThe type of error that occurred, this is an identifier designed for programmatic use that will change rarely or never.
loc`tuple[intstr, ...]`
msgstrA human readable error message.
inputAnyThe input data at this loc that caused the error.
ctxdict[str, Any]Values which are required to render the error message, and could hence be useful in rendering custom error messages.
urlstrThe documentation URL giving information about the error.