PaveDBClient.Error exception (pavedb_client v0.1.0)

Copy Markdown

Structured PaveDB client error.

code and message carry PaveDB's code and error envelope fields; details carries the optional structured context PaveDB sends alongside them. status is nil for failures raised before a response arrived.

Summary

Types

t()

@type t() :: %PaveDBClient.Error{
  __exception__: true,
  body: term(),
  code: String.t(),
  details: map() | nil,
  message: String.t(),
  status: non_neg_integer() | nil
}