FerricStore.HTTP.Error exception (ferricstore_sdk v0.11.12)

Copy Markdown View Source

A structured HTTP transport, gateway, or command error.

safe_to_retry is deliberately false for uncertain POST failures unless the endpoint explicitly proves otherwise.

Summary

Types

t()

@type t() :: %FerricStore.HTTP.Error{
  __exception__: term(),
  details: map() | nil,
  error_code: binary() | nil,
  message: binary(),
  reason: term(),
  retry_after_ms: non_neg_integer() | nil,
  retryable: boolean(),
  safe_to_retry: boolean(),
  status_code: non_neg_integer() | nil
}

Functions

invalid(reason)

@spec invalid(term()) :: {:error, t()}

network(reason)

@spec network(term()) :: {:error, t()}

timeout()

@spec timeout() :: {:error, t()}