# `Ash.Error.Changes.InvalidRelationship`
[🔗](https://github.com/ash-project/ash/blob/v3.27.8/lib/ash/error/changes/invalid_relationship.ex#L5)

Used when an invalid value is provided for a relationship change

# `exception`

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

Create an `Elixir.Ash.Error.Changes.InvalidRelationship` without raising it.

## Keys

- :relationship
- :message

---

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