Rocksky.Error exception (Rocksky v0.1.0)

Copy Markdown View Source

Error returned from any Rocksky SDK call.

  • :status — HTTP status (nil for transport errors)
  • :reason — atom or term describing the failure
  • :message — human-readable message
  • :body — response body if present (parsed JSON or raw string)

Summary

Types

t()

@type t() :: %Rocksky.Error{
  __exception__: true,
  body: term(),
  message: String.t(),
  reason: atom() | term(),
  status: pos_integer() | nil
}