View Source Kadena.Chainweb.Error (Kadena v0.19.0)

Represents an error which occurred during a Chainweb API call.

Link to this section Summary

Link to this section Types

@type error() :: {error_source(), error_body()}
@type error_body() :: map() | atom()
@type error_source() :: :chainweb | :network
@type status() :: 200..299 | 400..599 | :network_error
@type t() :: %Kadena.Chainweb.Error{status: status(), title: title()}
@type title() :: String.t() | atom()

Link to this section Functions

@spec new(error :: error()) :: t()