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

Copy Markdown

Errors related to connection establishment, network issues, or disconnections.

Used when:

  • Unable to establish gRPC connection
  • Connection timeout
  • Network unreachable
  • Connection lost during operation

Summary

Types

t()

@type t() :: %Milvex.Errors.Connection{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  host: String.t() | nil,
  path: term(),
  port: integer() | nil,
  reason: String.t() | atom(),
  retriable: boolean() | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Milvex.Errors.Connection{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  host: term(),
  path: term(),
  port: term(),
  reason: term(),
  retriable: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

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

Keys

  • :reason
  • :host
  • :port
  • :retriable