# `Trellis.CaptureFailure`
[🔗](https://github.com/salesforce-misc/trellis/blob/v0.1.0-alpha/clients/elixir/lib/trellis/status.ex#L271)

Why capture of `source_table` is broken, or why the drain (or a build's
merge) halted on the transform: `kind` is `:capture`, `:halt` or
`:disruption`, `error`
is a sentence naming the cause, `columns` the columns it is about (empty
when it isn't about a column, and for a halt), and `detected_at` when it
was first found.

# `kind`

```elixir
@type kind() :: :capture | :halt | :disruption
```

Whether capture broke, the drain halted, or capture was changed outside Trellis.

# `t`

```elixir
@type t() :: %Trellis.CaptureFailure{
  columns: [String.t()],
  detected_at: DateTime.t(),
  error: String.t(),
  kind: kind(),
  source_table: String.t()
}
```

---

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