InitErrorDetails
This class defines the structure for detailed error information during initialization, capturing the specific type of error and its location within the schema. It provides access to the original input data that triggered the failure and includes a context dictionary for rendering custom error messages or passing additional metadata.
Attributes
| Attribute | Type | Description |
|---|---|---|
| type | `str | PydanticCustomError` |
| loc | `tuple[int | str, ...]` |
| 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. |
Constructor
Signature
def InitErrorDetails(
type: str | PydanticCustomError,
loc: tuple[int | str, ...],
input: Any,
ctx: dict[str, Any]
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| type | `str | PydanticCustomError` |
| loc | `tuple[int | str, ...]` |
| input | Any | The input data at the specified location that caused the error. |
| ctx | dict[str, Any] | A dictionary of values required to render the error message or pass custom error data. |