Skip to main content

ErrorDetails

This class represents a structured dictionary containing detailed information about a validation error. It provides programmatic identifiers, the location of the error within the data schema, human-readable messages, and the original input that caused the failure. Additionally, it can include optional context for message rendering and links to relevant documentation.

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.