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

Exception raised when BTOON encoding fails.

Raised when a value cannot be represented in the BTOON data model, a
schema field is missing or has the wrong type, or an integer overflows
its declared width.

# `t`

```elixir
@type t() :: %ToonEx.Btoon.EncodeError{
  __exception__: term(),
  message: String.t(),
  reason: term(),
  value: term()
}
```

---

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