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

Copy Markdown

Errors from gRPC operations or Milvus server responses.

Used when:

  • Milvus returns an error status code
  • gRPC call fails
  • Server-side validation fails
  • Operation not permitted

Summary

Functions

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

Types

t()

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

Functions

exception(msg)

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

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

Keys

  • :code
  • :message
  • :details
  • :operation