> ## Documentation Index
> Fetch the complete documentation index at: https://typewall.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validation Errors

> Inspect structured, deterministic validation failures

`Schema.parse()` raises `ValidationError`. Its `issues` tuple retains deterministic traversal order and each `ValidationIssue` includes `path`, `code`, `message`, `expected`, and `received_type` fields.

```python theme={null}
from typewall import ValidationError, w

schema = w.object({"count": w.int(), "enabled": w.bool()})
try:
    schema.parse({"count": "1", "enabled": 1})
except ValidationError as error:
    assert [issue.path for issue in error.issues] == [("count",), ("enabled",)]
```

> [!WARNING]
>
> Error messages report types and paths without embedding complete rejected values.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.