# `Texture.HttpStructuredField.Parser.Error`
[🔗](https://github.com/lud/texture/blob/main/lib/texture/http_structured_field/parser/error.ex#L1)

Exception raised when a structured field cannot be parsed.

The exception carries the following fields:

* `:reason` - a `{tag, rest}` tuple where `tag` is an atom describing the
  error (for instance `:invalid_value` or `:expected_delimiter`) and `rest`
  is the remaining input at the point of failure.
* `:value` - the full value given to the parser.

# `t`

```elixir
@type t() :: %Texture.HttpStructuredField.Parser.Error{
  __exception__: term(),
  reason: {atom(), binary()},
  value: binary() | nil
}
```

---

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