Milvex.Errors.Unknown exception (milvex v0.6.0)

Copy Markdown

Fallback for unexpected or unclassified errors.

Used when:

  • An unexpected exception occurs
  • Error cannot be classified into other categories
  • Wrapping third-party library errors

Summary

Types

t()

@type t() :: %Milvex.Errors.Unknown{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  context: map() | nil,
  error: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

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

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

Keys

  • :error
  • :context