View Source Stellar.Horizon.Error (Elixir Stellar SDK v0.22.0)
Represents an error which occurred during a Horizon API call.
Summary
Types
@type base64_xdr() :: String.t()
@type detail() :: String.t() | nil
@type error() :: {error_source(), error_body()}
@type error_source() :: :horizon | :network
@type extras() :: %{ optional(:hash) => hash(), optional(:envelope_xdr) => base64_xdr(), optional(:result_codes) => result_codes(), optional(:result_xdr) => base64_xdr(), optional(:error) => detail() }
@type hash() :: String.t()
@type result_code() :: String.t()
@type result_codes() :: %{ optional(:transaction) => result_code(), optional(:operations) => [result_code()] }
@type status_code() :: 200 | 400 | 404 | 406 | 422 | 500 | :network_error
@type t() :: %Stellar.Horizon.Error{ detail: detail(), extras: extras(), status_code: status_code(), title: title(), type: type() }
@type title() :: String.t() | nil
@type type() :: String.t() | nil