# `ToonEx.Btoon.DecodeError`
[🔗](https://github.com/ohhi-vn/toon_ex/blob/v1.6.0/lib/toon_ex/btoon/errors.ex#L39)

Exception raised when BTOON decoding fails.

Raised when the input is malformed: bad magic, unsupported version,
truncated data, invalid type tags, out-of-range string refs, alignment or
nesting-limit violations.

# `t`

```elixir
@type t() :: %ToonEx.Btoon.DecodeError{
  __exception__: term(),
  input: binary() | nil,
  message: String.t(),
  offset: non_neg_integer() | nil,
  reason: term()
}
```

---

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