View Source Gumroad.Error exception (gumroad_elixir v0.1.1)

An error encountered while trying to query the Gumroad API.

Link to this section Summary

Types

t()

An error encountered while trying to query the Gumroad API.

Functions

Callback implementation for Exception.message/1.

Link to this section Types

@type t() :: %Gumroad.Error{
  __exception__: term(),
  from_gumroad: boolean(),
  reason: any()
}

An error encountered while trying to query the Gumroad API.

  • from_gumroad - set to true if Gumroad was reached but returned an error while processing the request. Set to false if Gumroad could not be reached at all.
  • reason - set to the error message returned from Gumroad when from_gumroad is true. Otherwise is an atom pointing to the underlying error, i.e. :timeout.

Link to this section Functions

Callback implementation for Exception.message/1.