# `Ash.Error.Unknown.InvalidCastedValue`
[🔗](https://github.com/ash-project/ash/blob/v3.27.8/lib/ash/error/unknown/invalid_casted_value.ex#L5)

Used when a value fails to dump to its native (storage) format

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Unknown.InvalidCastedValue{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  constraints: term(),
  error: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  value: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Unknown.InvalidCastedValue` without raising it.

## Keys

- :type
- :value
- :constraints
- :error

---

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