# `AshClickhouse.Error`
[🔗](https://github.com/ohhi-vn/ash_clickhouse/blob/main/lib/ash_clickhouse/error.ex#L1)

Error types for the AshClickhouse data layer.

Errors raised or returned by the data layer are wrapped in one of these
structs so that Ash can present consistent, structured error messages.

# `wrap_clickhouse_error`

```elixir
@spec wrap_clickhouse_error(term()) :: AshClickhouse.Error.ClickhouseError.t()
```

Wraps a ClickHouse client error into an Ash-compatible error.

---

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