# `MishkaGervaz.Errors.Action.Failed`
[🔗](https://github.com/mishka-group/mishka_gervaz/blob/v0.0.1-alpha.4/lib/mishka_gervaz/errors/action.ex#L7)

Raised when an action fails to execute.

## Fields

- `:resource` - The resource module
- `:action` - The action name
- `:reason` - The reason for the failure
- `:record_id` - Optional ID of the record

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %MishkaGervaz.Errors.Action.Failed{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  reason: term(),
  record_id: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.MishkaGervaz.Errors.Action.Failed` without raising it.

## Keys

- :resource
- :action
- :reason
- :record_id

---

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