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