QuackDB.Error exception (quackdb v0.1.0)

Copy Markdown View Source

Structured error returned by the QuackDB client.

Summary

Types

code()

@type code() :: atom()

source()

@type source() :: :client | :server | :transport | :protocol

t()

@type t() :: %QuackDB.Error{
  __exception__: true,
  code: code(),
  connection_id: String.t() | nil,
  message: String.t(),
  metadata: map(),
  query: iodata() | nil,
  retriable?: boolean(),
  source: source()
}

Functions

new(code, message, options \\ [])

@spec new(code(), String.t(), Keyword.t()) :: t()