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

An error encountered during validation or schema compilation.

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

# `t`

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

---

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