# `Dune.Failure`
[🔗](https://github.com/functional-rewire/dune/blob/v0.3.18/lib/dune/failure.ex#L1)

A struct returned when `Dune` parsing or evaluation fails.

Fields:
- `message` (string): the error message to display to the user
- `type` (atom): the nature of the error
- `stdio` (string): captured standard output

# `error_type`

```elixir
@type error_type() ::
  :restricted
  | :module_restricted
  | :module_conflict
  | :timeout
  | :exception
  | :compile_error
  | :parsing
  | :memory
  | :reductions
```

# `t`

```elixir
@type t() :: %Dune.Failure{message: String.t(), stdio: binary(), type: error_type()}
```

---

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