# `ToonEx.DecodeError`
[🔗](https://github.com/ohhi-vn/toon_ex/blob/v1.1.0/lib/toon_ex/errors/decode_error.ex#L1)

Exception raised when decoding fails.

This exception is raised when the decoder encounters an error while
parsing TOON format strings. It includes detailed information about
the error location and context.

# `t`

```elixir
@type t() :: %ToonEx.DecodeError{
  __exception__: true,
  column: pos_integer() | nil,
  context: String.t() | nil,
  input: String.t() | nil,
  line: pos_integer() | nil,
  message: String.t(),
  reason: term()
}
```

# `exception`

Creates a new DecodeError.

## Examples

    iex> ToonEx.DecodeError.exception(message: "Unexpected token", line: 1, column: 5)
    %ToonEx.DecodeError{
      message: "Unexpected token",
      input: nil,
      line: 1,
      column: 5,
      context: nil,
      reason: nil
    }

---

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