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
| Attribute | Type | Description |
|---|---|---|
| type | str | The type of error that occurred, this is an identifier designed for programmatic use that will change rarely or never. |
| loc | `tuple[int | str, ...]` |
| msg | str | A human readable error message. |
| input | Any | The input data at this loc that caused the error. |
| ctx | dict[str, Any] | Values which are required to render the error message, and could hence be useful in rendering custom error messages. |
| url | str | The documentation URL giving information about the error. |