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
| 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. |