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

An error encountered while trying to query the Gumroad API.

Summary

Types

t()

An error encountered while trying to query the Gumroad API.

Functions

Callback implementation for Exception.message/1.

Types

@type t() :: %Gumroad.Error{
  __exception__: true,
  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.

Functions

Callback implementation for Exception.message/1.