# `JSONSchex.Types.Error`
[🔗](https://github.com/xinz/jsonschex/blob/main/lib/jsonschex/types.ex#L61)

A validation error with path, rule, and optional message/context.

Use `JSONSchex.format_error/1` to produce a human-readable string.

# `t`

```elixir
@type t() :: %JSONSchex.Types.Error{
  context: map() | nil,
  message: String.t() | nil,
  path: list(),
  rule: atom(),
  value: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
