Milvex.Errors.Invalid exception (milvex v0.10.2)

Copy Markdown

Errors for invalid input, validation failures, or constraint violations.

Used when user-provided data fails validation, such as:

  • Invalid configuration parameters
  • Schema validation failures
  • Missing required fields
  • Type mismatches

Summary

Functions

Create an Elixir.Milvex.Errors.Invalid without raising it.

Types

t()

@type t() :: %Milvex.Errors.Invalid{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  code: atom() | nil,
  context: map() | nil,
  field: String.t() | atom() | nil,
  message: String.t(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %Milvex.Errors.Invalid{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  code: term(),
  context: term(),
  field: term(),
  message: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Milvex.Errors.Invalid without raising it.

Keys

  • :field
  • :message
  • :code
  • :context