# `Ash.Error.Invalid.InvalidActionType`
[🔗](https://github.com/ash-project/ash/blob/v3.25.2/lib/ash/error/invalid/invalid_action_type.ex#L5)

Used when a callback returns an invalid type

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Invalid.InvalidActionType{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  class: term(),
  expectation: term(),
  message: term(),
  path: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Invalid.InvalidActionType` without raising it.

## Keys

- :message
- :type
- :expectation
- :resource
- :action

---

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