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

Used when a resource or alias is provided that doesn't exist

# `exception`

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

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

## Keys

- :resource
- :message

---

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