View Source Stellar.Horizon.ErrorMapper (Elixir Stellar SDK v0.22.0)

Assigns errors returned by the HTTP client to a custom structure.

Summary

Types

@type error() :: {error_source(), error_body()}
@type error_body() :: map() | atom() | String.t()
@type error_source() :: :horizon | :network
@type t() :: {:error, struct()}

Functions

@spec build(error :: error()) :: t()