Dsxir.Errors.Invalid.Metric exception (dsxir v0.1.0)

Copy Markdown

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

Summary

Functions

exception(args)

@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