# `CommBus.Template.RenderError`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Exception raised or returned when a template render fails. Carries the
failure `:type` (e.g. `:render_failed`, `:type_coercion_failed`,
`:max_depth_exceeded`), a human-readable `:message`, and optional
`:template_name` and `:variable_name` for diagnostics.

# `t`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

```elixir
@type t() :: %CommBus.Template.RenderError{
  __exception__: true,
  message: String.t(),
  template_name: String.t() | nil,
  type: atom(),
  variable_name: String.t() | nil
}
```

# `message`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

```elixir
@spec message(t()) :: String.t()
```

Returns the human-readable error message string.

## Parameters

  - `error` — A `%CommBus.Template.RenderError{}` struct.

## Returns

The error message as a `String.t()`.

---

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