# `Dsxir.Errors.Invalid.Metric`

Raised when a metric returns a non-numeric/non-boolean value for an example.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Dsxir.Errors.Invalid.Metric{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  example: term(),
  expected: term(),
  path: term(),
  returned: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Dsxir.Errors.Invalid.Metric` without raising it.

## Keys

- :example
- :returned
- :expected

---

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